fix(specs): Indentation issue causing bad code

This commit is contained in:
Ben Gotow 2015-03-02 15:47:02 -08:00
parent e7868df1ad
commit 542c2bd4d7

View file

@ -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) =>