mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
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)
|
||||
return unless arrays.length
|
||||
state[progressObjectName] = state[progressObjectName] ? {}
|
||||
state[progressObjectName] ?= {}
|
||||
for array in arrays
|
||||
for thang in array
|
||||
if @thangTeams[thang]?
|
||||
|
|
Loading…
Reference in a new issue