Skip to content

Commit fd816d3

Browse files
authored
Format files with gofumpt to fix linting warnings
1 parent 064a3e3 commit fd816d3

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

internal/github/action.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,9 @@ func (a *Action) pullRequestNumber() int {
127127
func (a *Action) outputResult(result string) {
128128
labelCheckOutput := fmt.Sprintf("label_check=%s", result)
129129
gitHubOutputFileName := filepath.Clean(os.Getenv("GITHUB_OUTPUT"))
130-
githubOutputFile, err := os.OpenFile(gitHubOutputFileName, os.O_APPEND|os.O_WRONLY, 0644)
130+
githubOutputFile, err := os.OpenFile(gitHubOutputFileName, os.O_APPEND|os.O_WRONLY, 0o644)
131131
panic.IfError(err)
132132
_, err = githubOutputFile.WriteString(labelCheckOutput)
133-
134133
if err != nil {
135134
closingErr := githubOutputFile.Close()
136135

internal/github/action_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ import (
1414
"github.com/agilepathway/label-checker/internal/error/panic"
1515
)
1616

17-
//nolint: gochecknoglobals
17+
//nolint:gochecknoglobals
1818
var integration = flag.Bool(
1919
"integration",
2020
false,
2121
"Make calls to real external services. Requires INPUT_REPO_TOKEN environment variable.")
2222

23-
//nolint: gochecknoglobals
23+
//nolint:gochecknoglobals
2424
var enterpriseCloud = flag.Bool(
2525
"enterprise-cloud",
2626
false,
2727
"Run the label checker against GitHub Enterprise Cloud instead of standard GitHub")
2828

29-
//nolint: gochecknoglobals
29+
//nolint:gochecknoglobals
3030
var enterpriseServer = flag.Bool(
3131
"enterprise-server",
3232
false,
3333
"Run the label checker against GitHub Enterprise Server instead of standard GitHub")
3434

35-
// nolint: lll
35+
//nolint:lll
3636
const (
3737
EnvGitHubRepository = "GITHUB_REPOSITORY"
3838
EnvGitHubEventPath = "GITHUB_EVENT_PATH"
@@ -91,7 +91,7 @@ const (
9191

9292
type specifyChecks func()
9393

94-
// nolint: lll, funlen, dupl
94+
//nolint:lll,funlen,dupl
9595
func TestLabelChecks(t *testing.T) {
9696
tests := map[string]struct {
9797
prNumber int

0 commit comments

Comments
 (0)