Skip to content

Commit 45f69b0

Browse files
committed
fix 配置文件未获取到时不应该返回key的bug 2022-07-12 09:24:1657589097
1 parent 8d6d5df commit 45f69b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func GetVal(key string) string {
4444
if s, ok := mData[key1]; ok {
4545
return fmt.Sprintf("%v", s)
4646
}
47-
return key1
47+
return ""
4848
}
4949
func GetValByDefault(key, dftvl string) string {
5050
s := GetVal(key)

0 commit comments

Comments
 (0)