Skip to content

Commit

Permalink
refactor: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun committed Apr 19, 2024
1 parent 8b2e15a commit 2211f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/rn/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class LogtoClient extends StandardLogtoClient {
case 'sign-out': {
break;
}
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check -- just in case
default: {
throw new LogtoNativeClientError('navigation_purpose_not_supported');
}
Expand Down
8 changes: 2 additions & 6 deletions packages/rn/src/polyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
/* eslint-disable @silverhand/fp/no-mutation, @typescript-eslint/no-unnecessary-condition */
import { btoaPolyfill, atobPolyfill } from 'js-base64';

if (!global.btoa) {
global.btoa = btoaPolyfill;
}
global.btoa ||= btoaPolyfill;

if (!global.atob) {
global.atob = atobPolyfill;
}
global.atob ||= atobPolyfill;
/* eslint-enable @silverhand/fp/no-mutation, @typescript-eslint/no-unnecessary-condition */

0 comments on commit 2211f34

Please sign in to comment.