Skip to content

Commit f2dd6d1

Browse files
committed
refactor: code style (-_-)
1 parent 9fde5cf commit f2dd6d1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/util/csrf.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export function resolveCsrf(fallback: string | null = null): string | null {
1010
}
1111

1212
if (
13-
typeof document !== 'undefined' &&
14-
typeof document.querySelector === 'function' &&
15-
(selector = document.querySelector('meta[name="csrf-token"]'))
13+
typeof document !== 'undefined' &&
14+
typeof document.querySelector === 'function' &&
15+
(selector = document.querySelector('meta[name="csrf-token"]'))
1616
) {
1717
return selector?.getAttribute('content') || null;
1818
}

src/util/pusher.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function convertDeprecatedOptions(options: Record<any, any>) {
3535

3636
deprecationWarning(
3737
'The authEndpoint option is deprecated and will be removed in the next major version. ' +
38-
'Please use the channelAuthorization.endpoint option instead.'
38+
'Please use the channelAuthorization.endpoint option instead.'
3939
);
4040
}
4141

@@ -47,7 +47,7 @@ export function convertDeprecatedOptions(options: Record<any, any>) {
4747

4848
deprecationWarning(
4949
'The authTransport option is deprecated and will be removed in the next major version. ' +
50-
'Please use the channelAuthorization.transport option instead.'
50+
'Please use the channelAuthorization.transport option instead.'
5151
);
5252
}
5353

@@ -60,7 +60,7 @@ export function convertDeprecatedOptions(options: Record<any, any>) {
6060

6161
deprecationWarning(
6262
'The auth option is deprecated and will be removed in the next major version. ' +
63-
'Please use the channelAuthorization.headers and channelAuthorization.params options instead.'
63+
'Please use the channelAuthorization.headers and channelAuthorization.params options instead.'
6464
);
6565
}
6666

0 commit comments

Comments
 (0)