提交 792e08c8 authored 作者: Noel Grandin's avatar Noel Grandin

reduce indentatin in the getName() method, making it easier to read

上级 5f05037a
......@@ -382,7 +382,9 @@ public class ConnectionInfo implements Cloneable {
* @return the database name
*/
public String getName() {
if (persistent) {
if (!persistent) {
return name;
}
if (nameNormalized == null) {
if (!SysProperties.IMPLICIT_RELATIVE_PATH) {
if (!FileUtils.isAbsolute(name)) {
......@@ -417,8 +419,6 @@ public class ConnectionInfo implements Cloneable {
}
return nameNormalized;
}
return name;
}
/**
* Get the file password hash if it is set.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论