Cleaner conditional init syntax.
This commit is contained in:
parent
3e7edd8c61
commit
acccee33a3
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ module.exports = class GoalManager extends CocoClass
|
||||||
|
|
||||||
arrays = (prop for prop in whos when prop?.length)
|
arrays = (prop for prop in whos when prop?.length)
|
||||||
return unless arrays.length
|
return unless arrays.length
|
||||||
state[progressObjectName] = state[progressObjectName] ? {}
|
state[progressObjectName] ?= {}
|
||||||
for array in arrays
|
for array in arrays
|
||||||
for thang in array
|
for thang in array
|
||||||
if @thangTeams[thang]?
|
if @thangTeams[thang]?
|
||||||
|
|
Reference in a new issue