Kaynağa Gözat

Removed a condition which is not reachable any more.

Piotrek Koszuliński 6 yıl önce
ebeveyn
işleme
f9947de0c4

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

@@ -440,11 +440,6 @@ class FileLoader {
 		return this.file
 		return this.file
 			.then( file => this._reader.read( file ) )
 			.then( file => this._reader.read( file ) )
 			.then( data => {
 			.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';
 				this.status = 'idle';
 
 
 				return data;
 				return data;