From c2ab753932a5308bedea5a1ee2b7776dc5a4a3f2 Mon Sep 17 00:00:00 2001 From: jon4hz Date: Sat, 27 Jul 2024 16:42:24 +0200 Subject: [PATCH] chore: make the linter great again --- main.go | 8 ++++---- server.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index f6f4d18..b99287b 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,7 @@ func init() { rootCmd.AddCommand(serverCmd, versionCmd, manCmd) } -func root(cmd *coral.Command, args []string) { +func root(cmd *coral.Command, _ []string) { // parse screenshot resolution screenshotResolution, err := parseScreenshotResolution() if err != nil { @@ -67,7 +67,7 @@ func root(cmd *coral.Command, args []string) { flipperui.WithBgColor(rootFlags.bgColor), ), } - if err := tea.NewProgram(m, tea.WithMouseCellMotion()).Start(); err != nil { + if _, err := tea.NewProgram(m, tea.WithMouseCellMotion()).Run(); err != nil { log.Fatalln(err) } } @@ -85,7 +85,7 @@ var manCmd = &coral.Command{ DisableFlagsInUseLine: true, Hidden: true, Args: coral.NoArgs, - RunE: func(cmd *coral.Command, args []string) error { + RunE: func(_ *coral.Command, _ []string) error { manPage, err := mcoral.NewManPage(1, rootCmd) if err != nil { return err @@ -99,7 +99,7 @@ var manCmd = &coral.Command{ var versionCmd = &coral.Command{ Use: "version", Short: "Print the version info", - Run: func(cmd *coral.Command, args []string) { + Run: func(_ *coral.Command, _ []string) { fmt.Printf("Version: %s\n", version.Version) fmt.Printf("Commit: %s\n", version.Commit) fmt.Printf("Date: %s\n", version.Date) diff --git a/server.go b/server.go index f5bace8..9a03747 100644 --- a/server.go +++ b/server.go @@ -34,7 +34,7 @@ func init() { serverCmd.Flags().StringVarP(&serverFlags.authorizedKeys, "authorized-keys", "k", "", "authorized_keys file for public key authentication") } -func server(cmd *coral.Command, args []string) { +func server(cmd *coral.Command, _ []string) { // parse screenshot resolution screenshotResolution, err := parseScreenshotResolution() if err != nil {