Skip to content

Commit

Permalink
Apply destructuring trick
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob authored Feb 12, 2024
1 parent 102fb83 commit 5fcb2e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/step-mocker/step-mocker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ export class StepMocker {
this.updateStep(workflow, jobId, stepIndex, mockStep);
}
} else {
const stepQuery = { ...mockStep };
delete stepQuery.mockWith;
const { mockWith, ...stepQuery } = mockStep;

Check warning on line 46 in src/step-mocker/step-mocker.ts

View workflow job for this annotation

GitHub Actions / lint

'mockWith' is assigned a value but never used. Allowed unused vars must match /^_/u
throw new Error(`Could not find step ${JSON.stringify(stepQuery)} in job ${jobId}\nin ${filePath}`);
}
}
Expand Down

0 comments on commit 5fcb2e8

Please sign in to comment.