Skip to content

Commit

Permalink
use through2.obj
Browse files Browse the repository at this point in the history
  • Loading branch information
yocontra committed Jan 13, 2014
1 parent 6ab1c26 commit 252d4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/writing-a-plugin/dealing-with-streams.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function gulpPrefixer(prefixText) {
prefixText = new Buffer(prefixText); // allocate ahead of time

// Creating a stream through which each file will pass
var stream = through(function (file, enc, callback) {
var stream = through.obj(function (file, enc, callback) {
if (file.isNull()) {
this.push(file); // Do nothing if no contents
return callback();
Expand Down

0 comments on commit 252d4eb

Please sign in to comment.