mirror of https://github.com/docker/cli.git
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) Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
d640f44df3
commit
6eb0c9c613
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue