Skip to content

Commit d11c83d

Browse files
committed
prettier
1 parent ae139f1 commit d11c83d

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

packages/remote-config-compat/src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ function registerRemoteConfigCompat(
3434
'remoteConfig-compat',
3535
remoteConfigFactory,
3636
ComponentType.PUBLIC
37-
).setMultipleInstances(true)
38-
.setServiceProps({ isSupported })
37+
)
38+
.setMultipleInstances(true)
39+
.setServiceProps({ isSupported })
3940
);
4041

4142
firebaseInstance.registerVersion(packageName, version);

packages/remote-config-compat/src/remoteConfig.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ import {
4141
export { isSupported };
4242

4343
export class RemoteConfigCompatImpl
44-
implements RemoteConfigCompat, _FirebaseService {
44+
implements RemoteConfigCompat, _FirebaseService
45+
{
4546
constructor(public app: FirebaseApp, readonly _delegate: RemoteConfig) {}
4647

4748
get defaultConfig(): { [key: string]: string | number | boolean } {

packages/remote-config/src/api2.ts

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

1818
import { RemoteConfig } from './public_types';
1919
import { activate, fetchConfig } from './api';
20-
import { getModularInstance, isIndexedDBAvailable, validateIndexedDBOpenable } from '@firebase/util';
20+
import {
21+
getModularInstance,
22+
isIndexedDBAvailable,
23+
validateIndexedDBOpenable
24+
} from '@firebase/util';
2125

2226
// This API is put in a separate file, so we can stub fetchConfig and activate in tests.
2327
// It's not possible to stub standalone functions from the same module.
@@ -45,12 +49,12 @@ export async function fetchAndActivate(
4549
*
4650
* 1. Check if IndexedDB exists in the browser environment.
4751
* 2. Check if the current browser context allows IndexedDB `open()` calls.
48-
*
52+
*
4953
* @returns A `Promise` which resolves to true if a {@link RemoteConfig} instance
5054
* can be initialized in this environment, or false if it cannot.
5155
* @public
5256
*/
53-
export async function isSupported(): Promise<boolean> {
57+
export async function isSupported(): Promise<boolean> {
5458
if (!isIndexedDBAvailable()) {
5559
return false;
5660
}
@@ -61,4 +65,4 @@ export async function fetchAndActivate(
6165
} catch (error) {
6266
return false;
6367
}
64-
}
68+
}

packages/remote-config/src/register.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ import {
1919
registerVersion,
2020
SDK_VERSION
2121
} from '@firebase/app';
22-
import {
23-
isIndexedDBAvailable
24-
} from '@firebase/util';
22+
import { isIndexedDBAvailable } from '@firebase/util';
2523
import {
2624
Component,
2725
ComponentType,

0 commit comments

Comments
 (0)