瀏覽代碼

Fixed config test.

Steve Thielemann 2 年之前
父節點
當前提交
3ea2fb17e2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      config.go

+ 1 - 1
config.go

@@ -79,5 +79,5 @@ func SaveConfig(filename string, config map[string]string) error {
 func SetConfigDefault(config *map[string]string, key string, value string) bool {
 	_, ok := (*config)[key]
 	(*config)[key] = value
-	return !ok
+	return ok
 }