소스 검색

remove unnecessary double check

jomo 10 년 전
부모
커밋
46d10fdc81
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/response.js

+ 1 - 1
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