mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 08:35:16 +08:00
fix(task): fix typo during error check
This commit is contained in:
parent
f6bbb22411
commit
5f324b40be
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ export default class DestroyDraftTask extends BaseDraftTask {
|
|||
const inboxMsg = (err.body && err.body.message) ? err.body.message : '';
|
||||
|
||||
// Draft has already been deleted, this is not really an error
|
||||
if ([404, 409].inclues(err.statusCode)) {
|
||||
if ([404, 409].includes(err.statusCode)) {
|
||||
return Promise.resolve(Task.Status.Continue);
|
||||
}
|
||||
// Draft has been sent, and can't be deleted. Not much we can do but finish
|
||||
|
|
Loading…
Reference in a new issue