Skip to content

Commit 3b58bf9

Browse files
Merge pull request #5077 from linuxfoundation/unicron-fix-failing-lint
Fix the linter
2 parents a56985f + 4af53c9 commit 3b58bf9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

cla-backend-go/.golangci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# More info on config here: https://github.com/golangci/golangci-lint#config-file
55
run:
66
deadline: 5m
7+
go: "1.24"
78
issues-exit-code: 1
89
tests: true
910
skip-dirs:

cla-backend-go/github/github_repository.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2630,15 +2630,15 @@ func GetReturnURL(ctx context.Context, installationID, repositoryID int64, pullR
26302630
return "", err
26312631
}
26322632
if repo == nil {
2633-
err := fmt.Errorf("missing repository for repository ID %d", repositoryID)
2633+
err = fmt.Errorf("missing repository for repository ID %d", repositoryID)
26342634
log.WithFields(f).WithError(err).Warn("invalid repository metadata")
26352635
return "", err
26362636
}
26372637

26382638
owner := repo.GetOwner().GetLogin()
26392639
name := repo.GetName()
26402640
if owner == "" || name == "" {
2641-
err := fmt.Errorf("invalid repository owner/name for repository ID %d", repositoryID)
2641+
err = fmt.Errorf("invalid repository owner/name for repository ID %d", repositoryID)
26422642
log.WithFields(f).WithError(err).Warn("invalid repository metadata")
26432643
return "", err
26442644
}

0 commit comments

Comments
 (0)