Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaochen-zhou committed Mar 31, 2024
1 parent ba93f88 commit 5fc35ae
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,14 @@ public void initialize(Map<String, Object> configuration) {

String storageType =
String.valueOf(
configuration.getOrDefault(
STORAGE_TYPE_KEY, FileConfiguration.HDFS.toString())).toUpperCase();
configuration.getOrDefault(
STORAGE_TYPE_KEY, FileConfiguration.HDFS.toString()))
.toUpperCase();
String walSyncMethod =
String.valueOf(
configuration.getOrDefault(
WAL_SYNC_TYPE_KEY, WALSyncType.SYNC.toString())).toUpperCase();
configuration.getOrDefault(
WAL_SYNC_TYPE_KEY, WALSyncType.SYNC.toString()))
.toUpperCase();
this.walSyncType = WALSyncType.valueOf(walSyncMethod);
this.fileConfiguration = FileConfiguration.valueOf(storageType);
// build configuration
Expand Down

0 comments on commit 5fc35ae

Please sign in to comment.