fix indenting
This commit is contained in:
parent
5301f4a5d4
commit
91f748f85f
1 changed files with 3 additions and 3 deletions
|
|
@ -20,10 +20,10 @@ trySave = (func) ->
|
||||||
response = func()
|
response = func()
|
||||||
|
|
||||||
if response instanceof Promise
|
if response instanceof Promise
|
||||||
response.then ->
|
response.then ->
|
||||||
deferred.resolve()
|
|
||||||
else
|
|
||||||
deferred.resolve()
|
deferred.resolve()
|
||||||
|
else
|
||||||
|
deferred.resolve()
|
||||||
catch error
|
catch error
|
||||||
if error.message.endsWith('is a directory')
|
if error.message.endsWith('is a directory')
|
||||||
atom.notifications.addWarning("Unable to save file: #{error.message}")
|
atom.notifications.addWarning("Unable to save file: #{error.message}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue