Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 52e7d84

Browse files
committed
Pass along file when .isNull()
1 parent f6af956 commit 52e7d84

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function (options) {
1515
}
1616

1717
if (file.isNull()) {
18-
return cb();
18+
return cb(null, file);
1919
}
2020

2121
opts.data = file.contents.toString();
@@ -25,18 +25,18 @@ module.exports = function (options) {
2525
file.shortened = file.shortened && ext(file.shortened, '.css');
2626
file.contents = new Buffer(css);
2727
cb(null, file);
28-
}
28+
};
2929

3030
opts.error = function (err) {
3131
if (opts.errLogToConsole) {
32-
gutil.log('[gulp-sass] ' + err)
32+
gutil.log('[gulp-sass] ' + err);
3333
return cb();
3434
}
3535
return cb(new gutil.PluginError('gulp-sass', err));
36-
}
36+
};
3737

3838
sass.render(opts);
3939
}
4040

4141
return es.map(nodeSass);
42-
}
42+
};

0 commit comments

Comments
 (0)