Skip to content

Commit

Permalink
Update guidelines.md
Browse files Browse the repository at this point in the history
don't call `cb` twice + don't make unnecessary checks
  • Loading branch information
Denis Gorbachev authored and Denis Gorbachev committed Jun 18, 2015
1 parent a947382 commit 2e0e3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/writing-a-plugin/guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function gulpPrefixer(prefixText) {
return through.obj(function(file, enc, cb) {
if (file.isNull()) {
// return empty file
cb(null, file);
return cb(null, file);
}
if (file.isBuffer()) {
file.contents = Buffer.concat([prefixText, file.contents]);
Expand Down

0 comments on commit 2e0e3ae

Please sign in to comment.