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
+3 -3
View File
@@ -10,9 +10,9 @@ module.exports = function setLastModifiedHeader () {
if (cache_buster) {
const cacheBuster = parseInt(cache_buster, 10);
const lastModifiedDate = Number.isFinite(cacheBuster) && cacheBuster !== 0
? new Date(cacheBuster)
: new Date();
const lastModifiedDate = Number.isFinite(cacheBuster) && cacheBuster !== 0 ?
new Date(cacheBuster) :
new Date();
res.set('Last-Modified', lastModifiedDate.toUTCString());