Skip to content

Commit

Permalink
for #601: refactor getURL
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed May 4, 2018
1 parent 2021907 commit ad86377
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,7 @@ public String getDriverClassName() {
* @return database URL
*/
public String getURL(final String dbName) {
String nowDbName = dbName;
if (null == nowDbName) {
nowDbName = DATABASE_NAME.get(databaseType);
}
return String.format(URL.get(databaseType), nowDbName);
return String.format(URL.get(databaseType), null == dbName ? DATABASE_NAME.get(databaseType) : dbName);
}

/**
Expand Down

0 comments on commit ad86377

Please sign in to comment.