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 254aa8813695a..8508304204a42 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 Collection> listMigrationSourceResources(final Pipelin } private String getStandardProperty(final Map 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