Skip to content

Commit fb6542c

Browse files
committed
fix 命令行参数容错 2022-07-10 02:17:1657390642
1 parent 8c41656 commit fb6542c

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
@@ -38,7 +38,7 @@ var (
3838
func GetVal(key string) string {
3939
key1 := os.Getenv(key)
4040
if "" != key1 {
41-
return key1
41+
return fmt.Sprintf("%v", key1)
4242
}
4343
key1 = strings.ToLower(key)
4444
if s, ok := mData[key1]; ok {

0 commit comments

Comments
 (0)