Cleaner conditional init syntax.

This commit is contained in:
Nick Winter 2014-05-06 07:22:09 -07:00
parent 3e7edd8c61
commit acccee33a3

View file

@ -204,7 +204,7 @@ module.exports = class GoalManager extends CocoClass
arrays = (prop for prop in whos when prop?.length)
return unless arrays.length
state[progressObjectName] = state[progressObjectName] ? {}
state[progressObjectName] ?= {}
for array in arrays
for thang in array
if @thangTeams[thang]?