Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Commit

Permalink
Tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Eastridge committed Jan 31, 2013
1 parent 1bf081a commit a67a58a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,18 @@ handlebars.registerAsyncHelper('include', function(file, options, callback) {

function transform(source, callback) {
fs.readFile(source, function(err, data) {
if (err) {
throw err;
}
var extensions = source.split('/').pop().split('.');
var callbacks = _.filter(extensions, function(extension) {
return extension in transforms;
}).map(function(extension) {
if (err) {
throw err;
}
var extensions = source.split('/').pop().split('.');
var callbacks = _.filter(extensions, function(extension) {
return extension in transforms;
}).map(function(extension) {
return function(next) {
transforms[extension](data, next);
transforms[extension](data, next);
};
});
async.series(callbacks, callback);
});
async.series(callbacks, callback);
});
}

Expand Down

0 comments on commit a67a58a

Please sign in to comment.