From 46d10fdc81644fc8dbe59098b8e7368cd8ef8408 Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 6 May 2015 21:07:43 +0200 Subject: [PATCH] remove unnecessary double check --- lib/response.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/response.js b/lib/response.js index 64251da..e438f31 100644 --- a/lib/response.js +++ b/lib/response.js @@ -58,7 +58,7 @@ module.exports = function(request, response, result) { if (result.body) { // use Mojang's image hash if available // use crc32 as a hash function otherwise - var etag = result.body && result.hash && result.hash.substr(0, 10) || crc(result.body); + var etag = result.hash && result.hash.substr(0, 10) || crc(result.body); headers.Etag = "\"" + etag + "\""; // handle etag caching