[DBZ-1406] Remove unnecessary config key check.
This commit is contained in:
parent
d8fca7b5cb
commit
7f526d4a32
@ -340,8 +340,7 @@ public boolean postProcessEnabled() {
|
||||
|
||||
public CommitLogTransfer getCommitLogTransfer() {
|
||||
try {
|
||||
String clazz = configs.containsKey(COMMIT_LOG_TRANSFER_CLASS) ?
|
||||
(String) configs.get(COMMIT_LOG_TRANSFER_CLASS) : DEFAULT_COMMIT_LOG_TRANSFER_CLASS;
|
||||
String clazz = (String) configs.getOrDefault(COMMIT_LOG_TRANSFER_CLASS, DEFAULT_COMMIT_LOG_TRANSFER_CLASS);
|
||||
CommitLogTransfer transfer = (CommitLogTransfer) Class.forName(clazz).newInstance();
|
||||
transfer.init(commitLogTransferConfigs());
|
||||
return transfer;
|
||||
|
Loading…
Reference in New Issue
Block a user