Skip to content

Commit 551020e

Browse files
author
kjelko
committed
run formatted again
1 parent 62e1e84 commit 551020e

File tree

7 files changed

+27
-16
lines changed

7 files changed

+27
-16
lines changed

packages/remote-config/src/client/caching_client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class CachingClient implements RemoteConfigFetchClient {
3737
private readonly storage: Storage,
3838
private readonly storageCache: StorageCache,
3939
private readonly logger: Logger
40-
) { }
40+
) {}
4141

4242
/**
4343
* Returns true if the age of the cached fetched configs is less than or equal to
@@ -65,9 +65,9 @@ export class CachingClient implements RemoteConfigFetchClient {
6565

6666
this.logger.debug(
6767
'Config fetch cache check.' +
68-
` Cache age millis: ${cacheAgeMillis}.` +
69-
` Cache max age millis (minimumFetchIntervalMillis setting): ${cacheMaxAgeMillis}.` +
70-
` Is cache hit: ${isCachedDataFresh}.`
68+
` Cache age millis: ${cacheAgeMillis}.` +
69+
` Cache max age millis (minimumFetchIntervalMillis setting): ${cacheMaxAgeMillis}.` +
70+
` Is cache hit: ${isCachedDataFresh}.`
7171
);
7272

7373
return isCachedDataFresh;

packages/remote-config/src/client/remote_config_fetch_client.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,3 @@ export interface FetchRequest {
101101
*/
102102
customSignals?: CustomSignals;
103103
}
104-

packages/remote-config/src/client/rest_client.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { CustomSignals, FetchResponse, FirebaseRemoteConfigObject } from '../public_types';
18+
import {
19+
CustomSignals,
20+
FetchResponse,
21+
FirebaseRemoteConfigObject
22+
} from '../public_types';
1923
import {
2024
RemoteConfigFetchClient,
2125
FetchRequest
@@ -55,7 +59,7 @@ export class RestClient implements RemoteConfigFetchClient {
5559
private readonly projectId: string,
5660
private readonly apiKey: string,
5761
private readonly appId: string
58-
) { }
62+
) {}
5963

6064
/**
6165
* Fetches from the Remote Config REST API.

packages/remote-config/src/client/retrying_client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class RetryingClient implements RemoteConfigFetchClient {
9191
constructor(
9292
private readonly client: RemoteConfigFetchClient,
9393
private readonly storage: Storage
94-
) { }
94+
) {}
9595

9696
async fetch(request: FetchRequest): Promise<FetchResponse> {
9797
const throttleMetadata = (await this.storage.getThrottleMetadata()) || {

packages/remote-config/src/storage/storage.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ export class IndexedDbStorage extends Storage {
202202
'custom_signals',
203203
transaction
204204
);
205-
const updatedSignals = mergeCustomSignals(customSignals, storedSignals || {});
205+
const updatedSignals = mergeCustomSignals(
206+
customSignals,
207+
storedSignals || {}
208+
);
206209
await this.setWithTransaction<CustomSignals>(
207210
'custom_signals',
208211
updatedSignals,
@@ -345,13 +348,20 @@ export class InMemoryStorage extends Storage {
345348
}
346349

347350
async setCustomSignals(customSignals: CustomSignals): Promise<CustomSignals> {
348-
const storedSignals = (this.storage['custom_signals'] || {}) as CustomSignals;
349-
this.storage['custom_signals'] = mergeCustomSignals(customSignals, storedSignals);
351+
const storedSignals = (this.storage['custom_signals'] ||
352+
{}) as CustomSignals;
353+
this.storage['custom_signals'] = mergeCustomSignals(
354+
customSignals,
355+
storedSignals
356+
);
350357
return Promise.resolve(this.storage['custom_signals'] as CustomSignals);
351358
}
352359
}
353360

354-
function mergeCustomSignals(customSignals: CustomSignals, storedSignals: CustomSignals): CustomSignals {
361+
function mergeCustomSignals(
362+
customSignals: CustomSignals,
363+
storedSignals: CustomSignals
364+
): CustomSignals {
355365
const combinedSignals = {
356366
...storedSignals,
357367
...customSignals

packages/remote-config/src/storage/storage_cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { Storage } from './storage';
2323
* A memory cache layer over storage to support the SDK's synchronous read requirements.
2424
*/
2525
export class StorageCache {
26-
constructor(private readonly storage: Storage) { }
26+
constructor(private readonly storage: Storage) {}
2727

2828
/**
2929
* Memory caches.

packages/remote-config/test/remote_config.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ import * as sinon from 'sinon';
2626
import { StorageCache } from '../src/storage/storage_cache';
2727
import { Storage } from '../src/storage/storage';
2828
import { RemoteConfig } from '../src/remote_config';
29-
import {
30-
RemoteConfigFetchClient,
31-
} from '../src/client/remote_config_fetch_client';
29+
import { RemoteConfigFetchClient } from '../src/client/remote_config_fetch_client';
3230
import { Value } from '../src/value';
3331
import './setup';
3432
import { ERROR_FACTORY, ErrorCode } from '../src/errors';

0 commit comments

Comments
 (0)