mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Better conditional
This commit is contained in:
@@ -1022,7 +1022,7 @@ class AtomEnvironment extends Model
|
||||
@workspace.deserialize(state.workspace, @deserializers) if state.workspace?
|
||||
@deserializeTimings.workspace = Date.now() - startTime
|
||||
|
||||
if missingProjectPaths.length
|
||||
if missingProjectPaths.length > 0
|
||||
count = if missingProjectPaths.length is 1 then '' else missingProjectPaths.length + ' '
|
||||
noun = if missingProjectPaths.length is 1 then 'directory' else 'directories'
|
||||
toBe = if missingProjectPaths.length is 1 then 'is' else 'are'
|
||||
|
||||
Reference in New Issue
Block a user