Skip to content

Commit

Permalink
Update packages/eslint-plugin/src/rules/no-restricted-imports.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
  • Loading branch information
domdomegg and JoshuaKGoldberg committed Apr 17, 2023
1 parent a97f9a1 commit 4d6f65e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/rules/no-restricted-imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export type MessageIds = InferMessageIdsTypeFromRule<typeof baseRule>;
const tryAccess = <T>(getter: () => T, fallback: T): T => {
try {
return getter();
} catch (error) {
} catch {
return fallback;
}
};
Expand Down

0 comments on commit 4d6f65e

Please sign in to comment.