From 52a6e484fc7492b5cc7886d0dccf99019f13188c Mon Sep 17 00:00:00 2001 From: john Date: Wed, 15 Nov 2017 23:20:03 +0330 Subject: [PATCH] else:no need to use else good : if (engine._info) return { buffer, engine }; else return buffer; better : if (engine._info) return { buffer, engine }; return buffer; --- lib/zlib.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/zlib.js b/lib/zlib.js index 2def716e9b676c..4cbdd37e10d7a2 100644 --- a/lib/zlib.js +++ b/lib/zlib.js @@ -119,8 +119,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) {