Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/remote-config/remote-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import {
InitServerTemplateOptions,
ServerTemplateDataType,
} from './remote-config-api';
import { isString } from 'lodash';

/**
* The Firebase `RemoteConfig` service interface.
Expand Down Expand Up @@ -205,6 +204,7 @@ export class RemoteConfig {
if (options?.template) {
template.set(options?.template);
}

return template;
}
}
Expand Down Expand Up @@ -328,7 +328,7 @@ class ServerTemplateImpl implements ServerTemplate {
*/
public set(template: ServerTemplateDataType): void {
let parsed;
if (isString(template)) {
if (validator.isString(template)) {
try {
parsed = JSON.parse(template);
} catch (e) {
Expand Down