Use unless instead of if for subscription check

This commit is contained in:
Kevin Sawicki
2013-10-14 17:11:05 -07:00
parent bf1457e557
commit 6e313dc0e4

View File

@@ -96,7 +96,7 @@ class Directory
# Private:
subscribeToNativeChangeEvents: ->
if @watchSubscription?
unless @watchSubscription?
@watchSubscription = pathWatcher.watch @path, (eventType) =>
@emit "contents-changed" if eventType is "change"