Skip to content

Commit a35fffe

Browse files
committed
Add missing return statement when input file is null
1 parent ade45bd commit a35fffe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function gulpProtractorCucumberHtmlReport(opts) {
2929
return through.obj(function (file, enc, cb) {
3030
if (file.isNull()) {
3131
cb(null, file);
32+
return;
3233
}
3334

3435
if (file.isBuffer()) {
@@ -44,7 +45,7 @@ function gulpProtractorCucumberHtmlReport(opts) {
4445

4546
gutil.log(PLUGIN_NAME + ':', 'File \'' + opts.filename + '\' has been created in \'' + opts.dest + '\' directory');
4647

47-
cb(null, file)
48+
cb(null, file);
4849
});
4950

5051
} else {

0 commit comments

Comments
 (0)