Skip to content

Commit 28e720a

Browse files
committed
💚 linting
1 parent 5a1191e commit 28e720a

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

utils/client/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ func NewClient(cfg *http.RequestConfiguration, logger logr.Logger, underlyingHTT
4242

4343
func newClientConfiguration(cfg *http.RequestConfiguration) (clientCfg *_client.Configuration) {
4444
clientCfg = _client.NewConfiguration()
45-
if !reflection.IsEmpty(cfg.Target.Host) {
46-
basePathURL, err := url.Parse(cfg.Target.Host)
45+
if !reflection.IsEmpty(cfg.Host) {
46+
basePathURL, err := url.Parse(cfg.Host)
4747
if err == nil {
4848
clientCfg.Host = basePathURL.Host
4949
clientCfg.Scheme = basePathURL.Scheme

utils/job/manager_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func TestManager_BrowseMessages(t *testing.T) {
199199
assert.NotNil(t, messagePaginator)
200200
count := 0
201201
for {
202-
if !messagePaginator.HasNext() {
202+
if !messagePaginator.HasNext() { //nolint:staticcheck
203203
break
204204
}
205205
message, subErr := messagePaginator.GetNext()

utils/messages/testing_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func Test_NewMockNotificationFeedPage(t *testing.T) {
2525
it, err := page.GetItemIterator()
2626
require.NoError(t, err)
2727
for {
28-
if !it.HasNext() {
28+
if !it.HasNext() { //nolint:staticcheck
2929
break
3030
}
3131
next, err := it.GetNext()

utils/pagination/page_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func TestToPage(t *testing.T) {
105105
itback, err := mappedBack.GetItemIterator()
106106
require.NoError(t, err)
107107
for {
108-
if !it.HasNext() {
108+
if !it.HasNext() { //nolint:staticcheck
109109
break
110110
}
111111
assert.True(t, itback.HasNext())

utils/pagination/stream_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func TestToStream(t *testing.T) {
101101
itBack, err := mappedBack.GetItemIterator()
102102
require.NoError(t, err)
103103
for {
104-
if !it.HasNext() {
104+
if !it.HasNext() { //nolint:staticcheck
105105
break
106106
}
107107
assert.True(t, itBack.HasNext())

0 commit comments

Comments
 (0)