Skip to content

Commit

Permalink
Remove remoteConf reference
Browse files Browse the repository at this point in the history
  • Loading branch information
damsien authored May 30, 2024
1 parent 61b4161 commit 3ad6b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/webhook_request_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (wrc *WebhookRequestChecker) userAllowed(details *wrcDetails) (bool, error)
// The subject name can not be unique -> in specific conditions, a commit can be done as another user
// Need to be studied
if gitUserBinding.Spec.Subject.Name == incomingUser.Username {
remoteConf, gitUser, err = wrc.searchForGitToken(*gitUserBinding, fqdn, remoteConf)
_, gitUser, err = wrc.searchForGitToken(*gitUserBinding, fqdn, remoteConf)
if err != nil {
errMsg := err.Error()
details.messageAddition = errMsg
Expand Down

0 comments on commit 3ad6b8f

Please sign in to comment.