From 221817d1e4b7aa0448390c31da3a5034dce78da6 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Tue, 10 Mar 2015 15:13:51 -0700 Subject: [PATCH] fix(send): fix linting error --- src/flux/tasks/send-draft.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flux/tasks/send-draft.coffee b/src/flux/tasks/send-draft.coffee index 9327d474c..4d48d6c96 100644 --- a/src/flux/tasks/send-draft.coffee +++ b/src/flux/tasks/send-draft.coffee @@ -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)