Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
jackie-coming committed Dec 21, 2024
1 parent 89321ac commit 08e2705
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,20 +265,16 @@ private ApolloConfig loadApolloConfig() {
ApolloConfig result = response.getBody();

if (result != null) {

ConfigSyncType configSyncType = ConfigSyncType.fromString(result.getConfigSyncType());

if (configSyncType == ConfigSyncType.INCREMENTAL_SYNC) {

ApolloConfig previousConfig = m_configCache.get();

Map<String, String> previousConfigurations =
(previousConfig != null) ? previousConfig.getConfigurations() : null;

result.setConfigurations(
mergeConfigurations(previousConfigurations, result.getConfigurationChanges()));

}

}

logger.debug("Loaded config for {}: {}", m_namespace, result);
Expand Down

0 comments on commit 08e2705

Please sign in to comment.