build: fix linting issues introduced by latest revive release

This commit is contained in:
Vincent Bernat
2022-08-07 23:54:24 +02:00
parent 50614cef5b
commit 61c8143fe8
12 changed files with 16 additions and 1 deletions

View File

@@ -160,6 +160,7 @@ func SubnetMapUnmarshallerHook[V any]() mapstructure.DecodeHookFunc {
}
}
// MarshalYAML turns a subnet into a map that can be marshaled.
func (sm SubnetMap[V]) MarshalYAML() (interface{}, error) {
return sm.ToMap(), nil
}