Skip to content

Commit

Permalink
zlib: remove unnecessary else branch
Browse files Browse the repository at this point in the history
PR-URL: #17057
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Johnsavadkuhi authored and MylesBorins committed Dec 12, 2017
1 parent 42a8f03 commit 57ee0dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/zlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ function zlibBufferSync(engine, buffer) {
buffer = processChunkSync(engine, buffer, engine._finishFlushFlag);
if (engine._info)
return { buffer, engine };
else
return buffer;
return buffer;
}

function zlibOnError(message, errno) {
Expand Down

0 comments on commit 57ee0dd

Please sign in to comment.