Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jy committed Dec 19, 2024
1 parent 9077c7e commit e825561
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
3 changes: 1 addition & 2 deletions test/unit/util_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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);
});
Expand Down

0 comments on commit e825561

Please sign in to comment.