Apply prefer-const lint rule

This commit is contained in:
Zaid Abdulla committed 2018-08-25 16:14:34 -07:00
1 parent b43088c03c
commit 09e6a360af
26 files changed
+217 -215

No files matched your search

+2 -2
View File
@@ -412,7 +412,7 @@ function revertDownloadParameters(sessionContext, instance, callback) {
"Download"
]);
let toClear = device.set(sessionContext.deviceData, p, timestamp, {
const toClear = device.set(sessionContext.deviceData, p, timestamp, {
value: [
timestamp,
[
@@ -2080,7 +2080,7 @@ function loadPath(sessionContext, path, depth) {
if (trimWildcard < path.length) path = path.slice(0, trimWildcard);
for (let i = 0; i <= path.length; ++i) {
let d = i === path.length ? 99 : i;
const d = i === path.length ? 99 : i;
for (const sup of sessionContext.deviceData.paths.find(
path.slice(0, i),
true,