mirror of https://github.com/docker/cli.git
Disable unparam linter: cli/required.go:102:16: `pluralize` - `word` always receives `"argument"` (unparam)
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
(cherry picked from commit 7d823438bb
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
b49a07b63d
commit
c749704b83
|
@ -99,6 +99,7 @@ func ExactArgs(number int) cobra.PositionalArgs {
|
|||
}
|
||||
}
|
||||
|
||||
//nolint: unparam
|
||||
func pluralize(word string, number int) string {
|
||||
if number == 1 {
|
||||
return word
|
||||
|
|
Loading…
Reference in New Issue