Explorar o código

Removed a condition which is not reachable any more.

Piotrek Koszuliński %!s(int64=6) %!d(string=hai) anos
pai
achega
f9947de0c4
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  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;