Skip to content

Commit

Permalink
linter happiness
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrgm committed Feb 2, 2024
1 parent 5ff507d commit 5afd69d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/mastodon-github-action/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ func postStatus(url, accessToken string, status MastodonStatus) error {
if err != nil {
return fmt.Errorf("API call error: %w", err)
}

//nolint: errcheck
defer resp.Body.Close()

if resp.StatusCode != http.StatusOK {
Expand Down
2 changes: 2 additions & 0 deletions cmd/mastodon-github-action/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func setActionOutputs(outputPairs map[string]string) {

// setActionOutput sets a single GitHub Action output, with backward compatibility for
// self-hosted runners without a GITHUB_OUTPUT environment file.
//
//nolint:unused
func setActionOutput(outputName, value string) {
writeOutput(outputName, value)
}

0 comments on commit 5afd69d

Please sign in to comment.