mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-04 06:18:24 +08:00
fix(send): fix linting error
This commit is contained in:
parent
501704359e
commit
221817d1e4
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue