mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use unless instead of if for subscription check
This commit is contained in:
@@ -96,7 +96,7 @@ class Directory
|
||||
|
||||
# Private:
|
||||
subscribeToNativeChangeEvents: ->
|
||||
if @watchSubscription?
|
||||
unless @watchSubscription?
|
||||
@watchSubscription = pathWatcher.watch @path, (eventType) =>
|
||||
@emit "contents-changed" if eventType is "change"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user