Skip to content

Commit

Permalink
Remove unnecessary returns
Browse files Browse the repository at this point in the history
  • Loading branch information
zertosh committed Nov 8, 2015
1 parent daefbc4 commit 7d09348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -40,16 +40,16 @@ function DuplexWrapper(options, writable, readable) {
});

readable.once("end", function() {
return self.push(null);
self.push(null);
});

if (!options || typeof options.bubbleErrors === "undefined" || options.bubbleErrors) {
writable.on("error", function(err) {
return self.emit("error", err);
self.emit("error", err);
});

readable.on("error", function(err) {
return self.emit("error", err);
self.emit("error", err);
});
}
}
Expand Down

0 comments on commit 7d09348

Please sign in to comment.