diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-12-02 10:33:04 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-12-02 10:33:04 +0100 |
commit | f33d88f96fbca58d065ed0437a6a81f27253caa8 (patch) | |
tree | b736b70157ac74f465486a61c775406abb94d5d7 /client/go/cmd/cert.go | |
parent | d7e097a6405da03ac89bc162f252751340146d0a (diff) |
Simplify
Diffstat (limited to 'client/go/cmd/cert.go')
-rw-r--r-- | client/go/cmd/cert.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/client/go/cmd/cert.go b/client/go/cmd/cert.go index ff88d614682..e79a45d3af8 100644 --- a/client/go/cmd/cert.go +++ b/client/go/cmd/cert.go @@ -33,9 +33,7 @@ var certCmd = &cobra.Command{ Example: certExample(), DisableAutoGenTag: true, Args: cobra.MaximumNArgs(1), - Run: func(cmd *cobra.Command, args []string) { - doCert(args) - }, + Run: doCert, } var deprecatedCertCmd = &cobra.Command{ @@ -46,12 +44,10 @@ var deprecatedCertCmd = &cobra.Command{ Args: cobra.MaximumNArgs(1), Deprecated: "use 'vespa auth cert' instead", Hidden: true, - Run: func(cmd *cobra.Command, args []string) { - doCert(args) - }, + Run: doCert, } -func doCert(args []string) { +func doCert(_ *cobra.Command, args []string) { app := getApplication() pkg, err := vespa.FindApplicationPackage(applicationSource(args), false) if err != nil { |