Skip to content

Commit

Permalink
zlib: remove unnecessary else branch
Browse files Browse the repository at this point in the history
PR-URL: nodejs#17057
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Johnsavadkuhi authored and jasnell committed Nov 22, 2017
1 parent b28a28a commit b98027e
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 b98027e

Please sign in to comment.