From 542c2bd4d71f88706588dc0c2e93f996c7249a31 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 2 Mar 2015 15:47:02 -0800 Subject: [PATCH] fix(specs): Indentation issue causing bad code --- src/flux/tasks/syncback-draft.coffee | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/flux/tasks/syncback-draft.coffee b/src/flux/tasks/syncback-draft.coffee index 4b6597c9e..663460332 100644 --- a/src/flux/tasks/syncback-draft.coffee +++ b/src/flux/tasks/syncback-draft.coffee @@ -24,15 +24,16 @@ class SyncbackDraftTask extends Task shouldWaitForTask: (other) -> other instanceof SyncbackDraftTask and other.draftLocalId is @draftLocalId and other.creationDate < @creationDate - performLocal: -> - # SyncbackDraftTask does not do anything locally. You should persist your changes - # to the local database directly or using a DraftStoreProxy, and then queue a - # SyncbackDraftTask to send those changes to the server. - if not @draftLocalId? - errMsg = "Attempt to call FileUploadTask.performLocal without @draftLocalId" - Promise.reject(new Error(errMsg)) - else - Promise.resolve() + performLocal: -> + # SyncbackDraftTask does not do anything locally. You should persist your changes + # to the local database directly or using a DraftStoreProxy, and then queue a + # SyncbackDraftTask to send those changes to the server. + console.log('in performLocal') + if not @draftLocalId? + errMsg = "Attempt to call FileUploadTask.performLocal without @draftLocalId" + Promise.reject(new Error(errMsg)) + else + Promise.resolve() performRemote: -> new Promise (resolve, reject) =>