mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 19:43:04 +08:00
fix(specs): Indentation issue causing bad code
This commit is contained in:
parent
e7868df1ad
commit
542c2bd4d7
1 changed files with 10 additions and 9 deletions
|
@ -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) =>
|
||||
|
|
Loading…
Reference in a new issue