瀏覽代碼

chore: refactor (#3164)

Kevin Wan 2 年之前
父節點
當前提交
49f73265b9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/conf/config.go

+ 1 - 1
core/conf/config.go

@@ -353,7 +353,7 @@ func (e conflictKeyError) Error() string {
 }
 
 func getFullName(parent, child string) string {
-	if parent == "" {
+	if len(parent) == 0 {
 		return child
 	}