From eded89d94a5cb203c8a22f657a52678e0dcf7784 Mon Sep 17 00:00:00 2001 From: Luiz Pegoraro Date: Mon, 16 Oct 2023 11:05:57 -0300 Subject: [PATCH] feat(agent): fix typing warnings. --- cmd/agent/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/agent/main.go b/cmd/agent/main.go index 4ad7179bc..2779d5f5b 100644 --- a/cmd/agent/main.go +++ b/cmd/agent/main.go @@ -39,12 +39,12 @@ func init() { diode.Register() } -func Version(cmd *cobra.Command, args []string) { +func Version(_ *cobra.Command, _ []string) { fmt.Printf("orb-agent %s\n", buildinfo.GetVersion()) os.Exit(0) } -func Run(cmd *cobra.Command, args []string) { +func Run(_ *cobra.Command, _ []string) { initConfig() @@ -212,5 +212,5 @@ func main() { rootCmd.AddCommand(runCmd) rootCmd.AddCommand(versionCmd) - rootCmd.Execute() + _ = rootCmd.Execute() }