Browse Source

Fixed config test.

Steve Thielemann 2 years ago
parent
commit
3ea2fb17e2
1 changed files with 1 additions and 1 deletions
  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
 }