diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2021-02-11 22:55:56 +0100 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2021-02-11 23:01:56 +0100 |
commit | 78c8a87362ee27ba1d2a62b7c9d73adc313c7d7e (patch) | |
tree | 12fdfd2472f66e68081a89b0019621c1b8a1586c /cmd/podman/shell_completion_test.go | |
parent | 69ab67bf90aa4bbd285f360e3bca4c85b6028908 (diff) | |
download | podman-78c8a87362ee27ba1d2a62b7c9d73adc313c7d7e.tar.gz podman-78c8a87362ee27ba1d2a62b7c9d73adc313c7d7e.tar.bz2 podman-78c8a87362ee27ba1d2a62b7c9d73adc313c7d7e.zip |
Enable whitespace linter
Use the whitespace linter and fix the reported problems.
[NO TESTS NEEDED]
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'cmd/podman/shell_completion_test.go')
-rw-r--r-- | cmd/podman/shell_completion_test.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cmd/podman/shell_completion_test.go b/cmd/podman/shell_completion_test.go index d2b500b09..3f6f56fbe 100644 --- a/cmd/podman/shell_completion_test.go +++ b/cmd/podman/shell_completion_test.go @@ -26,14 +26,11 @@ import ( ) func TestShellCompletionFunctions(t *testing.T) { - rootCmd := parseCommands() checkCommand(t, rootCmd) - } func checkCommand(t *testing.T, cmd *cobra.Command) { - if cmd.HasSubCommands() { for _, childCmd := range cmd.Commands() { checkCommand(t, childCmd) @@ -46,7 +43,6 @@ func checkCommand(t *testing.T, cmd *cobra.Command) { // loop over all local flags cmd.LocalFlags().VisitAll(func(flag *pflag.Flag) { - // an error means that there is a completion function for this flag err := cmd.RegisterFlagCompletionFunc(flag.Name, func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { return nil, cobra.ShellCompDirectiveDefault |