Skip to content

Commit f837dd8

Browse files
Update packages/eslint-plugin-svelte/src/rules/no-top-level-browser-globals.ts
Co-authored-by: Yuichiro Yamashita <[email protected]>
1 parent 7459735 commit f837dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/eslint-plugin-svelte/src/rules/no-top-level-browser-globals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ export default createRule('no-top-level-browser-globals', {
376376
if (parent.left === guardInfo.node) {
377377
const block = parent.right;
378378
return (n) => {
379-
if (parentChecker && parentChecker(n)) {
379+
if (parentChecker?.(n)) {
380380
return true;
381381
}
382382
return block.range[0] <= n.range[0] && n.range[1] <= block.range[1];

0 commit comments

Comments
 (0)