8
0
Просмотр исходного кода

Merge pull request #106 from ckeditor/i/5892

Tests: Removed a condition which is not reachable anymore. Closes ckeditor/ckeditor5#5892.
Aleksander Nowodzinski 6 лет назад
Родитель
Сommit
11940014ab
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;