From 5d64e445fc47e8a47ca5e6c3f78a7a1fcc0b40d2 Mon Sep 17 00:00:00 2001 From: "Ilya Ig. Petrov" Date: Sun, 24 Feb 2019 17:17:09 +0000 Subject: [PATCH] Declare var near its usage --- .../37-sync-pac-script-with-pac-provider-api.tmpl.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/37-sync-pac-script-with-pac-provider-api.tmpl.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/37-sync-pac-script-with-pac-provider-api.tmpl.js index 56d88f8..1a2afe4 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/37-sync-pac-script-with-pac-provider-api.tmpl.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/37-sync-pac-script-with-pac-provider-api.tmpl.js @@ -138,7 +138,6 @@ httpLib.ifModifiedSince(pacUrl, lastModifiedStr, (err, newLastModifiedStr) => { if (!newLastModifiedStr) { - const res = {lastModified: lastModifiedStr}; const ifWasEverModified = lastModifiedStr !== new Date(0).toUTCString(); if (ifWasEverModified) { @@ -146,7 +145,7 @@ 'Ваш PAC-скрипт не нуждается в обновлении. Его дата: ' + lastModifiedStr ); - + const res = {lastModified: lastModifiedStr}; return cb(null, res); } }