Please jshint, can you be a regular linter?

This commit is contained in:
Daniel García Aubert 2019-10-21 11:13:54 +02:00
parent 8ed187b0f5
commit 0c9cfefcd0

View File

@ -10,9 +10,9 @@ module.exports = function setLastModifiedHeader () {
if (cache_buster) { if (cache_buster) {
const cacheBuster = parseInt(cache_buster, 10); const cacheBuster = parseInt(cache_buster, 10);
const lastModifiedDate = Number.isFinite(cacheBuster) && cacheBuster !== 0 const lastModifiedDate = Number.isFinite(cacheBuster) && cacheBuster !== 0 ?
? new Date(cacheBuster) new Date(cacheBuster) :
: new Date(); new Date();
res.set('Last-Modified', lastModifiedDate.toUTCString()); res.set('Last-Modified', lastModifiedDate.toUTCString());