From 262cc0ff917bae4d2a8e51e70bedcaed7ffc5e986416c768df5a5b72fce66c59 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Wed, 10 Jul 2024 11:25:00 +0200 Subject: [PATCH] . --- bots-common/gitea_utils.go | 2 +- bots-common/request_handler.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bots-common/gitea_utils.go b/bots-common/gitea_utils.go index ac1daac..babd98f 100644 --- a/bots-common/gitea_utils.go +++ b/bots-common/gitea_utils.go @@ -15,7 +15,7 @@ import ( func (h *RequestHandler) allocateGiteaTransport() *transport.Runtime { r := transport.New("src.opensuse.org", apiclient.DefaultBasePath, [](string){"https"}) - r.DefaultAuthentication = transport.BearerToken(h.GiteaToken) + r.DefaultAuthentication = transport.BearerToken(giteaToken) r.SetDebug(true) return r } diff --git a/bots-common/request_handler.go b/bots-common/request_handler.go index aa6eea7..b61e791 100644 --- a/bots-common/request_handler.go +++ b/bots-common/request_handler.go @@ -11,8 +11,6 @@ type Request struct { } type RequestHandler struct { - ObsToken, GiteaToken string - Error error GitCommiter, GitPath string Branch []string