Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Nov 10, 2015
1 parent ea3938b commit 2d71a2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions prefixers.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,10 @@ module.exports = {
defer: true,
fn: function (done) {
var command = 'sass -C --compass --sourcemap=none ' + scssFile;
var dir = __dirname;
exec('bundle exec ' + command,
function (error, stdout, stderr) {
if ( error ) throw stderr;
done.resolve();
});
exec('bundle exec ' + command, function (err, stdout, stderr) {
if ( err ) throw stderr;
done.resolve();
});
}
}
]
Expand Down
10 changes: 4 additions & 6 deletions preprocessors.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,10 @@ module.exports = {
defer: true,
fn: function (done) {
var command = 'sass -C --sourcemap=none ' + scssFile;
var dir = __dirname;
exec('bundle exec ' + command,
function (error, stdout, stderr) {
if ( error ) throw stderr;
done.resolve();
});
exec('bundle exec ' + command, function (err, stdout, stderr) {
if ( err ) throw stderr;
done.resolve();
});
}
}
]
Expand Down

0 comments on commit 2d71a2b

Please sign in to comment.