fix(send): fix linting error

This commit is contained in:
Evan Morikawa 2015-03-10 15:13:51 -07:00
parent 501704359e
commit 221817d1e4

View file

@ -31,7 +31,7 @@ class SendDraftTask extends Task
new Promise (resolve, reject) =>
# Fetch the latest draft data to make sure we make the request with the most
# recent draft version
DatabaseStore.findByLocalId(Message, @draftLocalId).then (draft) =>
DatabaseStore.findByLocalId(Message, @draftLocalId).then (draft) ->
# The draft may have been deleted by another task. Nothing we can do.
return reject(new Error("We couldn't find the saved draft.")) unless draft
@ -47,7 +47,7 @@ class SendDraftTask extends Task
method: 'POST'
body: body
returnsModel: true
success: =>
success: ->
atom.playSound('mail_sent.ogg')
Actions.postNotification({message: "Sent!", type: 'success'})
DatabaseStore.unpersistModel(draft).then(resolve)