From 227c9cb11f4d9bf97456a6b26f045b32ab4a2526 Mon Sep 17 00:00:00 2001 From: Fabian Sylvester Date: Thu, 17 Oct 2024 13:53:01 +0000 Subject: [PATCH] fix: remove device_map or media_map (#60) * ensure return nil when removing device_map or media_map --- pkg/config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/config/config.go b/pkg/config/config.go index 38e8cc6..74b3afb 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -310,6 +310,7 @@ func (c *Config) RemoveOptionByPath(p string) error { m := c.Viper.GetStringMapString(s[0]) delete(m, s[1]) c.Viper.Set(s[0], m) + return nil } return fmt.Errorf("Deleting `%s` is currently not supported, use set instead", s[1]) }