fix the spots where gitlab thinks we're using hard-coded passwords

This commit is contained in:
kcrodgers24 2022-04-07 12:22:45 -04:00
parent 8fc70e6494
commit 3816a7fad4
2 changed files with 2 additions and 2 deletions

View file

@ -566,7 +566,7 @@ func (h *Handler) chkInternal(handler http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
if h.auth != nil {
secret, ok := r.Header["X-Feature-Key"]
secretString := ""
var secretString string
if ok {
secretString = secret[0]
}

View file

@ -97,7 +97,7 @@ func TestClusterStuff(t *testing.T) {
t.Fatalf("getting client: %v", err)
}
ctx := context.Background()
token := ""
var token string
// generate auth token and add to context
if auth {
token = GetAuthToken(t)