diff --git a/cmd/mastodon-github-action/main.go b/cmd/mastodon-github-action/main.go index 439ceca..44d0fce 100644 --- a/cmd/mastodon-github-action/main.go +++ b/cmd/mastodon-github-action/main.go @@ -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 { diff --git a/cmd/mastodon-github-action/output.go b/cmd/mastodon-github-action/output.go index 4c78971..f933ca8 100644 --- a/cmd/mastodon-github-action/output.go +++ b/cmd/mastodon-github-action/output.go @@ -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) }