Skip to content

Commit

Permalink
chore: make the linter great again
Browse files Browse the repository at this point in the history
  • Loading branch information
jon4hz committed Sep 1, 2024
1 parent f2b6e3b commit c2ab753
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
}
}
Expand All @@ -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
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c2ab753

Please sign in to comment.