Skip to content

Commit

Permalink
refactor: remove redundant undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelss95 committed Oct 13, 2021
1 parent a6f4f56 commit a086bfc
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions source/from-fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ export function fromFixture<TMessageIds extends string>(
fixture: string,
invalidTestCase?: {
output?: string;
suggestions?:
| readonly eslint.SuggestionOutput<TMessageIds>[]
| null
| undefined;
suggestions?: readonly eslint.SuggestionOutput<TMessageIds>[] | null;
}
): eslint.InvalidTestCase<TMessageIds, never>;

Expand All @@ -25,10 +22,7 @@ export function fromFixture<
eslint.InvalidTestCase<TMessageIds, TOptions>,
"code" | "errors"
> & {
suggestions?:
| readonly eslint.SuggestionOutput<TMessageIds>[]
| null
| undefined;
suggestions?: readonly eslint.SuggestionOutput<TMessageIds>[] | null;
}
): eslint.InvalidTestCase<TMessageIds, TOptions>;

Expand All @@ -41,10 +35,7 @@ export function fromFixture<
eslint.InvalidTestCase<TMessageIds, TOptions>,
"code" | "errors"
> & {
suggestions?:
| readonly eslint.SuggestionOutput<TMessageIds>[]
| null
| undefined;
suggestions?: readonly eslint.SuggestionOutput<TMessageIds>[] | null;
} = {}
): eslint.InvalidTestCase<TMessageIds, TOptions> {
const { suggestions, ...rest } = invalidTestCase;
Expand Down

0 comments on commit a086bfc

Please sign in to comment.