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:
Silvin Lubecki 2019-04-02 13:52:19 +02:00 committed by Sebastiaan van Stijn
parent d640f44df3
commit 6eb0c9c613
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 2 additions and 0 deletions

View File

@ -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))