Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cla-backend-go/.golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# More info on config here: https://github.com/golangci/golangci-lint#config-file
run:
deadline: 5m
go: "1.24"
Comment thread
lukaszgryglicki marked this conversation as resolved.
issues-exit-code: 1
tests: true
skip-dirs:
Expand Down
4 changes: 2 additions & 2 deletions cla-backend-go/github/github_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -2630,15 +2630,15 @@ func GetReturnURL(ctx context.Context, installationID, repositoryID int64, pullR
return "", err
}
if repo == nil {
err := fmt.Errorf("missing repository for repository ID %d", repositoryID)
err = fmt.Errorf("missing repository for repository ID %d", repositoryID)
Comment thread
lukaszgryglicki marked this conversation as resolved.
log.WithFields(f).WithError(err).Warn("invalid repository metadata")
return "", err
}

owner := repo.GetOwner().GetLogin()
name := repo.GetName()
if owner == "" || name == "" {
err := fmt.Errorf("invalid repository owner/name for repository ID %d", repositoryID)
err = fmt.Errorf("invalid repository owner/name for repository ID %d", repositoryID)
log.WithFields(f).WithError(err).Warn("invalid repository metadata")
return "", err
}
Expand Down
Loading