Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlacy committed Nov 10, 2014
1 parent 25a7c33 commit 0808713
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/writing-a-plugin/guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ function gulpPrefixer(prefixText) {
prefixText = new Buffer(prefixText); // allocate ahead of time

// Creating a stream through which each file will pass
return through.obj(function(file, enc, callback) {
return through.obj(function(file, enc, cb) {
if (file.isNull()) {
// return empty file
return callback(null, file);
cb(null, file);
}
if (file.isBuffer()) {
file.contents = Buffer.concat([prefixText, file.contents]);
Expand All @@ -86,7 +86,7 @@ function gulpPrefixer(prefixText) {
file.contents = file.contents.pipe(prefixStream(prefixText));
}

return callback(null, file);
cb(null, file);

});

Expand Down

0 comments on commit 0808713

Please sign in to comment.