Skip to content

Commit 6f49afc

Browse files
committed
Removed unnecessary state
1 parent 10f6097 commit 6f49afc

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/storage/src/task.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,7 @@ export class UploadTask {
194194
} else {
195195
this.pendingTimeout = setTimeout(() => {
196196
this.pendingTimeout = null;
197-
switch (this._state) {
198-
case InternalTaskState.CANCELING:
199-
this._transition(InternalTaskState.CANCELED);
200-
case InternalTaskState.PAUSING:
201-
this._transition(InternalTaskState.PAUSED);
202-
default:
203-
this._continueUpload();
204-
}
197+
this._continueUpload();
205198
}, this.sleepTime);
206199
}
207200
}

0 commit comments

Comments
 (0)