This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new bb00c454502 Refactor MigrationJobAPI (#29219)
bb00c454502 is described below

commit bb00c45450217eda82fb6fd9544f9d72e016efa1
Author: Liang Zhang <[email protected]>
AuthorDate: Mon Nov 27 22:15:08 2023 +0800

    Refactor MigrationJobAPI (#29219)
---
 .../data/pipeline/scenario/migration/api/impl/MigrationJobAPI.java   | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/kernel/data-pipeline/scenario/migration/src/main/java/org/apache/shardingsphere/data/pipeline/scenario/migration/api/impl/MigrationJobAPI.java
 
b/kernel/data-pipeline/scenario/migration/src/main/java/org/apache/shardingsphere/data/pipeline/scenario/migration/api/impl/MigrationJobAPI.java
index 254aa881369..8508304204a 100644
--- 
a/kernel/data-pipeline/scenario/migration/src/main/java/org/apache/shardingsphere/data/pipeline/scenario/migration/api/impl/MigrationJobAPI.java
+++ 
b/kernel/data-pipeline/scenario/migration/src/main/java/org/apache/shardingsphere/data/pipeline/scenario/migration/api/impl/MigrationJobAPI.java
@@ -261,10 +261,7 @@ public final class MigrationJobAPI implements 
TransmissionJobAPI {
     }
     
     private String getStandardProperty(final Map<String, Object> 
standardProps, final String key) {
-        if (standardProps.containsKey(key) && null != standardProps.get(key)) {
-            return standardProps.get(key).toString();
-        }
-        return "";
+        return standardProps.containsKey(key) && null != 
standardProps.get(key) ? standardProps.get(key).toString() : "";
     }
     
     @Override

Reply via email to