From 0c9cfefcd0125cd7886ae370c3cbb857f6614127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 21 Oct 2019 11:13:54 +0200 Subject: [PATCH] Please jshint, can you be a regular linter? --- lib/api/middlewares/last-modified-header.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/api/middlewares/last-modified-header.js b/lib/api/middlewares/last-modified-header.js index 4d1fad52..e80d142a 100644 --- a/lib/api/middlewares/last-modified-header.js +++ b/lib/api/middlewares/last-modified-header.js @@ -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());