Skip to content

Commit b5ce4d7

Browse files
committed
Remove clone, _ check is not needed
1 parent b6175ed commit b5ce4d7

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var es = require('event-stream')
1+
var map = require('map-stream')
22
, clone = require('clone')
33
, sass = require('node-sass')
44
, path = require('path')
@@ -7,12 +7,9 @@ var es = require('event-stream')
77
;
88

99
module.exports = function (options) {
10-
var opts = options ? clone(options) : {};
10+
var opts = options ? options : {};
1111

1212
function nodeSass (file, cb) {
13-
if (path.basename(file.path).indexOf('_') === 0) {
14-
return cb();
15-
}
1613

1714
if (file.isNull()) {
1815
return cb(null, file);
@@ -22,7 +19,6 @@ module.exports = function (options) {
2219

2320
opts.success = function (css) {
2421
file.path = ext(file.path, '.css');
25-
file.shortened = file.shortened && ext(file.shortened, '.css');
2622
file.contents = new Buffer(css);
2723
cb(null, file);
2824
};
@@ -38,5 +34,5 @@ module.exports = function (options) {
3834
sass.render(opts);
3935
}
4036

41-
return es.map(nodeSass);
37+
return map(nodeSass);
4238
};

0 commit comments

Comments
 (0)