Skip to content

Commit

Permalink
fix: remove device_map or media_map (#60)
Browse files Browse the repository at this point in the history
* ensure return nil when removing device_map
  or media_map
  • Loading branch information
xx4h authored Oct 17, 2024
1 parent 52a6673 commit 227c9cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
Expand Down

0 comments on commit 227c9cb

Please sign in to comment.