Skip to content

Commit 7566d79

Browse files
committed
Use simpler syntax for easier understanding.
1 parent 33f60e3 commit 7566d79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/performance/src/services/remote_config_service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function getConfig(iid: string): Promise<void> {
7272
}
7373

7474
return getRemoteConfig(iid)
75-
.then(config => processConfig(config))
75+
.then(processConfig)
7676
.then(
7777
config => storeConfig(config),
7878
/** Do nothing for error, use defaults set in settings service. */
@@ -162,7 +162,7 @@ function getRemoteConfig(
162162
* is valid.
163163
*/
164164
function processConfig(
165-
config: RemoteConfigResponse | undefined
165+
config?: RemoteConfigResponse
166166
): RemoteConfigResponse | undefined {
167167
if (!config) {
168168
return config;

0 commit comments

Comments
 (0)