mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Test for undefinedness instead of 0.
This commit is contained in:
@@ -369,7 +369,10 @@ class GitRepository
|
||||
@getCachedRelativePathStatus(relativePath)
|
||||
|
||||
getCachedRelativePathStatus: (relativePath) ->
|
||||
@statusesByPath[relativePath] ? @async.getCachedPathStatuses()[relativePath]
|
||||
cachedStatus = @statusesByPath[relativePath]
|
||||
return cachedStatus if cachedStatus?
|
||||
|
||||
@async.getCachedPathStatuses()[relativePath]
|
||||
|
||||
# Public: Returns true if the given status indicates modification.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user