From 1737e3679770ceb585ba137f3cdfd9a405cf8c03 Mon Sep 17 00:00:00 2001 From: Piotr Halama Date: Wed, 28 Feb 2024 10:37:38 +0100 Subject: [PATCH] Fix linting issues (#1972) --- internal/btp/client.go | 4 ++-- internal/btp/credentials_test.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/btp/client.go b/internal/btp/client.go index b1d05c427..8c4bd7082 100644 --- a/internal/btp/client.go +++ b/internal/btp/client.go @@ -18,7 +18,7 @@ type LocalClient struct { func NewLocalClient(credentials *CISCredentials, token *XSUAAToken) *LocalClient { return &LocalClient{ credentials: credentials, - cis: newHttpClient(token), + cis: newHTTPClient(token), } } @@ -53,7 +53,7 @@ type httpClient struct { client *http.Client } -func newHttpClient(token *XSUAAToken) *httpClient { +func newHTTPClient(token *XSUAAToken) *httpClient { return &httpClient{ client: &http.Client{ Transport: &oauthTransport{ diff --git a/internal/btp/credentials_test.go b/internal/btp/credentials_test.go index 145b06291..b04237ac5 100644 --- a/internal/btp/credentials_test.go +++ b/internal/btp/credentials_test.go @@ -9,6 +9,7 @@ import ( ) const ( + // nolint:gosec correctCredentials = `{ "grant_type": "test", "uaa": {