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>
(cherry picked from commit 6eb0c9c613)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
67a7fe0b3b
commit
c77f5255a4
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user