From a402311bac61e3ab54b9a76fe6a4438dad6fddc0 Mon Sep 17 00:00:00 2001 From: Vincent Le Goff Date: Thu, 2 Dec 2021 16:44:13 +0100 Subject: [PATCH] fix: lint --- lib/utils.js | 4 ++-- test/parse.test.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 71017e4..4c0cede 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -115,7 +115,7 @@ function stripLeadingZeros (str, token) { const c = str[i] if (c === '0' && skip) { if ((i + 1 <= l && str[i + 1] === token) || i + 1 === l) { - out += c + out += c skip = false } } else { @@ -124,7 +124,7 @@ function stripLeadingZeros (str, token) { } else { skip = false } - out += c + out += c } } return out diff --git a/test/parse.test.js b/test/parse.test.js index d8e8e38..2fe2133 100644 --- a/test/parse.test.js +++ b/test/parse.test.js @@ -198,7 +198,7 @@ test('URI parse', (t) => { // invalid IPv6 components = URI.parse('//[2001:dbZ::7]') - t.equal(components.host,'[2001:dbz::7]') + t.equal(components.host, '[2001:dbz::7]') // mixed IPv4address & IPv6address components = URI.parse('//[::ffff:129.144.52.38]') @@ -302,9 +302,9 @@ test('URI parse', (t) => { t.equal(components.nss, 'a123,456', 'nss') components = URI.parse('//[2606:2800:220:1:248:1893:25c8:1946:43209]') - t.equal(components.host,"[2606:2800:220:1:248:1893:25c8:1946:43209]") + t.equal(components.host, '[2606:2800:220:1:248:1893:25c8:1946:43209]') components = URI.parse('urn:foo:|\\24fpl') - t.equal(components.error,'URN can not be parsed.') + t.equal(components.error, 'URN can not be parsed.') t.end() })