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 20, 2024
1 parent 9842289 commit b454698
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ private ApolloConfig loadApolloConfig() {

ApolloConfig result = response.getBody();

if(result!=null){
if (result != null) {

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

if (configSyncType == ConfigSyncType.INCREMENTAL_SYNC) {

Expand All @@ -267,7 +267,8 @@ private ApolloConfig loadApolloConfig() {
Map<String, String> previousConfigurations =
(previousConfig != null) ? previousConfig.getConfigurations() : null;

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

}
}
Expand Down Expand Up @@ -385,8 +386,8 @@ Map<String, String> mergeConfigurations(Map<String, String> previousConfiguratio
List<ConfigurationChange> configurationChanges) {
Map<String, String> newConfigurations = new HashMap<>();

if(previousConfigurations!=null){
newConfigurations=Maps.newHashMap(previousConfigurations);
if (previousConfigurations != null) {
newConfigurations = Maps.newHashMap(previousConfigurations);
}

if (configurationChanges == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static ConfigSyncType fromString(String value) {
return FULL_SYNC;
}
for (ConfigSyncType type : values()) {
if (type.value.equals(value)) {
if (type.value.equals(value)) {
return type;
}
}
Expand Down

0 comments on commit b454698

Please sign in to comment.