Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit 20e9ea3

Browse files
committed
Provide the file to the through2 callback instead of manually pushing it
1 parent 7d73818 commit 20e9ea3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ module.exports = function(options) {
4141
path: file.path,
4242
dest: path.join(repoPath, p)
4343
});
44-
this.push(file);
45-
callback(null);
44+
callback(null, file);
4645
}, function(done) {
4746
async.waterfall([
4847
function checkBranch(callback) {

0 commit comments

Comments
 (0)