From e825561e21c2542799b41c8541c09926dcfc8fce Mon Sep 17 00:00:00 2001 From: John Yun Date: Thu, 19 Dec 2024 09:42:08 -0800 Subject: [PATCH] lint fix --- lib/util.js | 4 ++-- test/unit/util_test.js | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/util.js b/lib/util.js index 5359e902a..b1d7830f1 100644 --- a/lib/util.js +++ b/lib/util.js @@ -763,9 +763,9 @@ exports.isWindows = function () { * * @returns {String} */ -exports.lstrip = function(str, remove) { +exports.lstrip = function (str, remove) { while (str.length > 0 && remove.indexOf(str.charAt(0)) !== -1) { str = str.substr(1); } return str; -} \ No newline at end of file +}; \ No newline at end of file diff --git a/test/unit/util_test.js b/test/unit/util_test.js index 6a058dbbf..107e7ac57 100644 --- a/test/unit/util_test.js +++ b/test/unit/util_test.js @@ -7,7 +7,6 @@ const assert = require('assert'); const path = require('path'); const fsPromises = require('fs/promises'); const os = require('os'); -const { lstat } = require('fs'); describe('Util', function () { it('Util.isFunction()', function () { @@ -1238,7 +1237,7 @@ describe('Util', function () { }, ]; - for (const {name, str, remove, result } of testCases) { + for (const { name, str, remove, result } of testCases) { it(name, function () { assert.strictEqual(Util.lstrip(str, remove), result); });