fix indenting

This commit is contained in:
Edvin Hultberg 2017-07-29 17:40:59 +02:00
parent 5301f4a5d4
commit 91f748f85f
No known key found for this signature in database
GPG key ID: 44865C8A6EA03BD9

View file

@ -20,10 +20,10 @@ trySave = (func) ->
response = func()
if response instanceof Promise
response.then ->
deferred.resolve()
else
response.then ->
deferred.resolve()
else
deferred.resolve()
catch error
if error.message.endsWith('is a directory')
atom.notifications.addWarning("Unable to save file: #{error.message}")