From 3ad6b8fdbbfe03e203e46ef4ae380b27c5f48159 Mon Sep 17 00:00:00 2001 From: Damien Date: Thu, 30 May 2024 17:37:21 +0200 Subject: [PATCH] Remove remoteConf reference --- internal/controller/webhook_request_checker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/webhook_request_checker.go b/internal/controller/webhook_request_checker.go index fa6178d..2e120e3 100644 --- a/internal/controller/webhook_request_checker.go +++ b/internal/controller/webhook_request_checker.go @@ -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