Skip to content
Prev Previous commit
Next Next commit
Update comments
  • Loading branch information
trekforever committed Apr 2, 2024
commit e926fcd56bf9c2ed70af9881e07a5207096d5d72
3 changes: 1 addition & 2 deletions src/remote-config/remote-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export class RemoteConfig {
const template = new ServerTemplateImpl(
this.client, new ConditionEvaluator(), options?.defaultConfig);
if (options?.template) {
// Check and instantiates via json string
// Check and instantiates the template via a json string
if (isString(options?.template)) {
try {
template.cache = new ServerTemplateDataImpl(JSON.parse(options?.template));
Expand All @@ -210,7 +210,6 @@ export class RemoteConfig {
);
}
} else {
// check and instantiates via ServerTemplateData
template.cache = options?.template;
}
}
Expand Down