Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Mar 15, 2024
1 parent ec06259 commit 1d36249
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const advanceIndexByCommand = function (code) {
case 0x54: // T
return 3;
}
throw new Error('Invalid command code ' + code);
throw new Error(`Invalid command code ${code}`);
};


Expand Down Expand Up @@ -218,7 +218,7 @@ const svgPathParse = function (d) {
const segments = [],
buffer = Buffer.from(d, 'ascii'),
pathLength = buffer.length;
let _currStartIndex, code, _previousCode, needParams, _previousNeedParams,
let _currStartIndex, code, needParams, _previousNeedParams,
i = 0;

while (i < pathLength) {
Expand All @@ -237,7 +237,6 @@ const svgPathParse = function (d) {
}
_currStartIndex = i;
i += advanceIndexByCommand(code);
_previousCode = code;
_previousNeedParams = needParams;
}
i++;
Expand Down

0 comments on commit 1d36249

Please # to comment.