Skip to content

Commit 956af92

Browse files
committed
Removed unnecessary if as disccussed in #82 (comment)
1 parent eed7491 commit 956af92

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

src/flow.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,15 +1317,13 @@
13171317
return;
13181318
}
13191319
}
1320-
if (typeof read === 'function') {
1321-
switch (this.readState) {
1322-
case 0:
1323-
this.readState = 1;
1324-
read(this, this.startByte, this.endByte, this.fileType);
1325-
return;
1326-
case 1:
1327-
return;
1328-
}
1320+
switch (this.readState) {
1321+
case 0:
1322+
this.readState = 1;
1323+
read(this, this.startByte, this.endByte, this.fileType);
1324+
return;
1325+
case 1:
1326+
return;
13291327
}
13301328
if (this.flowObj.opts.testChunks && !this.tested) {
13311329
this.test();

0 commit comments

Comments
 (0)