Skip to content

Commit 9a0c78f

Browse files
committed
cli-plugins/manager: fix prealloc linting
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 2e544d6 commit 9a0c78f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli-plugins/manager/cobra.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func AddPluginCommandStubs(dockerCLI config.Provider, rootCmd *cobra.Command) (e
5757
},
5858
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
5959
// Delegate completion to plugin
60-
cargs := []string{p.Path, cobra.ShellCompRequestCmd, p.Name}
60+
cargs := []string{p.Path, cobra.ShellCompRequestCmd, p.Name} //nolint:prealloc // no need to over-complicate things.
6161
cargs = append(cargs, args...)
6262
cargs = append(cargs, toComplete)
6363
os.Args = cargs

0 commit comments

Comments
 (0)