Skip to content

Commit

Permalink
Fixes non-null assertion lint exemption.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgp1130 committed Mar 5, 2023
1 parent f098807 commit 94ac620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rules_prerender/styles.mts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export function inlineStyle(importPath: string, meta: ImportMeta): string {
// since such tests would not actually care.
const inlineStyleMap = getInlineStyleMap();
const filePath = inlineStyleMap ? inlineStyleMap.get(resolved) : resolved;
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (!filePath) {
throw InlineStyleNotFoundError.from(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
importPath, resolved, inlineStyleMap!);
}

Expand Down

0 comments on commit 94ac620

Please sign in to comment.