Skip to content

Commit

Permalink
Fix errcheck linting errors
Browse files Browse the repository at this point in the history
Resolve `return value of fmt.Fprintf is not checked`` errors by
explicitly discarding return values (potential error, bytes written)
since we do not need them and the potential for failure (in this
particular use case) is *highly* unlikely.
  • Loading branch information
atc0005 committed Jun 1, 2024
1 parent 7aa5b15 commit 6101c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func (ums *userMentionsStringFlag) Set(value string) error {

// Branding is responsible for emitting application name, version and origin
func Branding() {
fmt.Fprintf(flag.CommandLine.Output(), "\n%s %s\n%s\n\n", myAppName, version, myAppURL)
_, _ = fmt.Fprintf(flag.CommandLine.Output(), "\n%s %s\n%s\n\n", myAppName, version, myAppURL)
}

// MessageTrailer generates a branded "footer" for use with submitted Teams
Expand Down Expand Up @@ -410,7 +410,7 @@ func flagsUsage() func() {

Branding()

fmt.Fprintf(flag.CommandLine.Output(), "Usage of \"%s\":\n",
_, _ = fmt.Fprintf(flag.CommandLine.Output(), "Usage of \"%s\":\n",
myBinaryName,
)
flag.PrintDefaults()
Expand Down

0 comments on commit 6101c27

Please sign in to comment.