Skip to content

Commit 02c30f7

Browse files
authored
Update heft-plugins/heft-lint-plugin/src/Eslint.ts
1 parent a34c450 commit 02c30f7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

heft-plugins/heft-lint-plugin/src/Eslint.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ export class Eslint extends LinterBase<TEslint.ESLint.LintResult> {
154154
// Map the fix messages to the results. This API should only return one result per file, so we can be sure
155155
// that the fix messages belong to the returned result. If we somehow receive multiple results, we will
156156
// drop the messages on the floor, but since they are only used for logging, this should not be a problem.
157-
const fixMessages: TEslint.Linter.LintMessage[] = this._currentFixMessages.splice(
158-
0
159-
);
157+
const fixMessages: TEslint.Linter.LintMessage[] = this._currentFixMessages.splice(0);
160158
if (lintResults.length === 1) {
161159
this._fixMessagesByResult.set(lintResults[0], fixMessages);
162160
}

0 commit comments

Comments
 (0)