Skip to content

Commit

Permalink
style: automatic fixes for new ESLint rules
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid committed Nov 2, 2024
1 parent 47d241c commit a0a71d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function parseConfigOutput(configData) {
let valueEnd = configData.indexOf(0, keyStart);
while (valueEnd > keyStart) {
const keyEnd = configData.indexOf(0xA, keyStart);
if (keyEnd < 0 || keyEnd >= valueEnd) {
if (keyEnd === -1 || keyEnd >= valueEnd) {
throw new Error(
`Invalid config output: '\\n' Not found in '${
configData.slice(keyStart, valueEnd)}' (byte offset ${
Expand Down

0 comments on commit a0a71d1

Please sign in to comment.