mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
remove unnecessary double check
This commit is contained in:
parent
ed25d30ff0
commit
46d10fdc81
@ -58,7 +58,7 @@ module.exports = function(request, response, result) {
|
|||||||
if (result.body) {
|
if (result.body) {
|
||||||
// use Mojang's image hash if available
|
// use Mojang's image hash if available
|
||||||
// use crc32 as a hash function otherwise
|
// 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 + "\"";
|
headers.Etag = "\"" + etag + "\"";
|
||||||
|
|
||||||
// handle etag caching
|
// handle etag caching
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user