Skip to content

Commit 05a06ed

Browse files
committed
Formatting
1 parent 8b301ba commit 05a06ed

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

packages-exp/auth-exp/src/api/index.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,16 @@ import * as mockFetch from '../../test/helpers/mock_fetch';
2929
import { AuthErrorCode } from '../core/errors';
3030
import { ConfigInternal } from '../model/auth';
3131
import {
32-
_getFinalTarget, _performApiRequest, DEFAULT_API_TIMEOUT_MS, Endpoint, HttpHeader, HttpMethod
32+
_getFinalTarget,
33+
_performApiRequest,
34+
DEFAULT_API_TIMEOUT_MS,
35+
Endpoint,
36+
HttpHeader,
37+
HttpMethod
3338
} from './';
3439
import { ServerError } from './errors';
3540

36-
use(sinonChai);
41+
use(sinonChai);
3742
use(chaiAsPromised);
3843

3944
describe('api/_performApiRequest', () => {

packages-exp/auth-exp/src/api/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717

1818
import { FirebaseError, querystring } from '@firebase/util';
1919

20-
import { AUTH_ERROR_FACTORY, AuthErrorCode, NamedErrorParams } from '../core/errors';
20+
import {
21+
AUTH_ERROR_FACTORY,
22+
AuthErrorCode,
23+
NamedErrorParams
24+
} from '../core/errors';
2125
import { fail } from '../core/util/assert';
2226
import { Delay } from '../core/util/delay';
2327
import { _emulatorUrl } from '../core/util/emulator';
@@ -206,7 +210,7 @@ class NetworkTimeout<T> {
206210
// Node timers and browser timers are fundamentally incompatible, but we
207211
// don't care about the value here
208212
// eslint-disable-next-line @typescript-eslint/no-explicit-any
209-
private timer: any|null = null;
213+
private timer: any | null = null;
210214
readonly promise = new Promise<T>((_, reject) => {
211215
this.timer = setTimeout(() => {
212216
return reject(
@@ -217,7 +221,7 @@ class NetworkTimeout<T> {
217221
}, DEFAULT_API_TIMEOUT_MS.get());
218222
});
219223

220-
clearNetworkTimeout():void {
224+
clearNetworkTimeout(): void {
221225
clearTimeout(this.timer);
222226
}
223227

0 commit comments

Comments
 (0)