Skip to content

Commit

Permalink
Rewrite location config tests using tables
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Feb 8, 2024
1 parent f75db1b commit cd3a5c6
Show file tree
Hide file tree
Showing 2 changed files with 209 additions and 212 deletions.
2 changes: 1 addition & 1 deletion internal/storage/types/location_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (c *LocationConfig) UnmarshalJSON(blob []byte) error {
keys := map[string]json.RawMessage{}
err := json.Unmarshal(blob, &keys)
if err != nil {
return err
return errors.New("undefined configuration format")
}
if len(keys) > 1 {
return errors.New("multiple config values have been assigned")
Expand Down
Loading

0 comments on commit cd3a5c6

Please sign in to comment.