From 3b3c27072ff6780d2384a455652edd4db5dbee61 Mon Sep 17 00:00:00 2001 From: Chris van Marle Date: Thu, 11 Oct 2018 15:50:58 +0200 Subject: [PATCH] Fix lint errors --- src/core/operations/Sort.mjs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/core/operations/Sort.mjs b/src/core/operations/Sort.mjs index dfb07c8..20f797f 100644 --- a/src/core/operations/Sort.mjs +++ b/src/core/operations/Sort.mjs @@ -146,19 +146,19 @@ class Sort extends Operation { const a_ = a.split(/([^\da-f]+)/i), b_ = b.split(/([^\da-f]+)/i); - for (let i = 0; i < a_.length; ++i) { - let t = parseInt(a_[i], 16); - if (!isNaN(t)) { - a_[i] = t; - } - } + for (let i = 0; i < a_.length; ++i) { + const t = parseInt(a_[i], 16); + if (!isNaN(t)) { + a_[i] = t; + } + } - for (let i = 0; i < b_.length; ++i) { - let t = parseInt(b_[i], 16); - if (!isNaN(t)) { - b_[i] = t; - } - } + for (let i = 0; i < b_.length; ++i) { + const t = parseInt(b_[i], 16); + if (!isNaN(t)) { + b_[i] = t; + } + } for (let i = 0; i < a_.length && i < b.length; ++i) { if (isNaN(a_[i]) && !isNaN(b_[i])) return 1; // Numbers after non-numbers