Skip to content

Commit

Permalink
chore: apply automated lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Oct 7, 2024
1 parent e6d34a2 commit b2cf9ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/syntax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ function _getCommentLocations(code: string) {
allowAwaitOutsideFunction: true,
allowImportExportEverywhere: true,
onComment(_isBlock, _text, start, end) {
locations.push({ start, end })
}
})
locations.push({ start, end });
},
});
return locations;
}

Expand All @@ -51,9 +51,9 @@ function _getCommentLocations(code: string) {
function stripComments(code: string) {
const locations = _getCommentLocations(code);
for (const location of locations.reverse()) {
code = code.slice(0, location.start) + code.slice(location.end)
code = code.slice(0, location.start) + code.slice(location.end);
}
return code
return code;
}

/**
Expand Down

0 comments on commit b2cf9ff

Please sign in to comment.