Skip to content

Commit

Permalink
chore: apply lint and formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] committed Mar 12, 2024
1 parent a01dfcd commit 68429bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/client/src/internals/getAbortController.ts
Expand Up @@ -8,11 +8,10 @@ export function getAbortController(
return customAbortControllerImpl;
}

// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
if (typeof window !== 'undefined' && window.AbortController) {
return window.AbortController;
}
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain

if (typeof globalThis !== 'undefined' && globalThis.AbortController) {
return globalThis.AbortController;
}
Expand Down
3 changes: 1 addition & 2 deletions packages/client/src/links/internals/getTextDecoder.ts
Expand Up @@ -7,11 +7,10 @@ export function getTextDecoder(
return customTextDecoder;
}

// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
if (typeof window !== 'undefined' && window.TextDecoder) {
return new window.TextDecoder();
}
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain

if (typeof globalThis !== 'undefined' && globalThis.TextDecoder) {
return new globalThis.TextDecoder();
}
Expand Down

0 comments on commit 68429bb

Please sign in to comment.