disable unparam linter on these functions, as we need an error in these function signatures
cli/compose/loader/loader.go:756:66: transformServiceNetworkMap - result 1 (error) is always nil (unparam)
cli/compose/loader/loader.go:767:67: transformStringOrNumberList - result 1 (error) is always nil (unparam)
@@ -772,6 +772,7 @@ func transformServiceVolumeConfig(data interface{}) (interface{}, error) {
}
}
+// nolint: unparam
func transformServiceNetworkMap(value interface{}) (interface{}, error) {
if list, ok := value.([]interface{}); ok {
mapValue := map[interface{}]interface{}{}
@@ -783,6 +784,7 @@ func transformServiceNetworkMap(value interface{}) (interface{}, error) {
return value, nil
}
+// nolint: unparam
func transformStringOrNumberList(value interface{}) (interface{}, error) {
list := value.([]interface{})
result := make([]string, len(list))
