Преглед изворни кода

Removed a condition which is not reachable any more.

Piotrek Koszuliński пре 6 година
родитељ
комит
f9947de0c4
1 измењених фајлова са 0 додато и 5 уклоњено
  1. 0 5
      packages/ckeditor5-upload/src/filerepository.js

+ 0 - 5
packages/ckeditor5-upload/src/filerepository.js

@@ -440,11 +440,6 @@ class FileLoader {
 		return this.file
 			.then( file => this._reader.read( file ) )
 			.then( data => {
-				// Edge case: reader was aborted after file was read - double check for proper status.
-				if ( this.status !== 'reading' ) {
-					throw this.status;
-				}
-
 				this.status = 'idle';
 
 				return data;