Explorar el Código

Removed a condition which is not reachable any more.

Piotrek Koszuliński hace 6 años
padre
commit
f9947de0c4
Se han modificado 1 ficheros con 0 adiciones y 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;