Skip to content

Commit 9e5fe52

Browse files
committed
fix(shared): add curly braces to satisfy eslint curly rule
1 parent 554a192 commit 9e5fe52

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/shared/src/telemetry/notice.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,15 @@ const CI_ENV_VARS = [
4242

4343
function isServerRuntime(): boolean {
4444
// Skip in browsers.
45-
if (typeof window !== 'undefined') return false;
45+
if (typeof window !== 'undefined') {
46+
return false;
47+
}
4648
// Skip in Next.js Edge Runtime, which exposes a global `EdgeRuntime` marker. We detect via
4749
// this marker (rather than checking `process.versions`) because the Edge Runtime build-time
4850
// analyzer flags any reachable read of `process.versions` even when it sits behind a guard.
49-
if (typeof (globalThis as { EdgeRuntime?: string }).EdgeRuntime !== 'undefined') return false;
51+
if (typeof (globalThis as { EdgeRuntime?: string }).EdgeRuntime !== 'undefined') {
52+
return false;
53+
}
5054
return true;
5155
}
5256

0 commit comments

Comments
 (0)