Skip to content

Commit bf45fba

Browse files
committed
Formatting
1 parent 65a1e23 commit bf45fba

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

packages-exp/auth-exp/src/core/auth/auth_impl.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ import { _getInstance } from '../util/instantiator';
3434
import * as navigator from '../util/navigator';
3535
import { _getClientVersion, ClientPlatform } from '../util/version';
3636
import {
37-
DEFAULT_API_HOST, DEFAULT_API_SCHEME, DEFAULT_TOKEN_API_HOST, initializeAuth
37+
DEFAULT_API_HOST,
38+
DEFAULT_API_SCHEME,
39+
DEFAULT_TOKEN_API_HOST,
40+
initializeAuth
3841
} from './auth_impl';
3942

4043
use(sinonChai);

packages-exp/auth-exp/src/core/auth/auth_impl.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ import { getApp } from '@firebase/app-exp';
1919
import { FirebaseApp } from '@firebase/app-types-exp';
2020
import * as externs from '@firebase/auth-types-exp';
2121
import {
22-
CompleteFn, createSubscribe, ErrorFn, NextFn, Observer, Subscribe, Unsubscribe
22+
CompleteFn,
23+
createSubscribe,
24+
ErrorFn,
25+
NextFn,
26+
Observer,
27+
Subscribe,
28+
Unsubscribe
2329
} from '@firebase/util';
2430

2531
import { Auth, Dependencies } from '../../model/auth';

packages-exp/auth-exp/src/core/persistence/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ export interface Persistence {
3939
set(key: string, value: PersistenceValue): Promise<void>;
4040
get<T extends PersistenceValue>(key: string): Promise<T | null>;
4141
remove(key: string): Promise<void>;
42-
}
42+
}

packages-exp/auth-exp/src/core/persistence/react_native.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ class FakeAsyncStorage implements ReactNativeAsyncStorage {
4949

5050
describe('core/persistence/react', () => {
5151
const fakeAsyncStorage = new FakeAsyncStorage();
52-
const persistence: Persistence = _getInstance(getReactNativePersistence(fakeAsyncStorage));
52+
const persistence: Persistence = _getInstance(
53+
getReactNativePersistence(fakeAsyncStorage)
54+
);
5355

5456
beforeEach(() => {
5557
fakeAsyncStorage.clear();

packages-exp/auth-exp/src/core/util/instantiator.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ const instanceCache: Map<unknown, unknown> = new Map();
3232

3333
export function _getInstance<T>(cls: unknown): T {
3434
debugAssert(cls instanceof Function, 'Expected a class definition');
35-
let instance = instanceCache.get(cls) as T|undefined;
35+
let instance = instanceCache.get(cls) as T | undefined;
3636

3737
if (instance) {
38-
debugAssert(instance instanceof cls, 'Instance stored in cache mismatched with class');
38+
debugAssert(
39+
instance instanceof cls,
40+
'Instance stored in cache mismatched with class'
41+
);
3942
return instance;
4043
}
4144

0 commit comments

Comments
 (0)