Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstucki committed Dec 19, 2024
1 parent 61c99de commit 8a67afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpadmin/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func TestIdleConnectionClosure(t *testing.T) {
case strings.HasPrefix(r.URL.Path, "/v1/node_config"):
w.Write([]byte(fmt.Sprintf(`{"node_id": %d}`, id))) //nolint:gocritic // original rpk code
case strings.HasPrefix(r.URL.Path, "/v1/partitions/redpanda/controller/0"):
w.Write([]byte(`{"leader_id": 0}`)) //nolint:gocritic // original rpk code
w.Write([]byte(`{"leader_id": 0}`))
}
}))

Expand Down Expand Up @@ -425,7 +425,7 @@ func TestIdleConnectionClosure(t *testing.T) {
require.NoError(t, err)
}

adminClient.Close()
// adminClient.Close()

Check failure on line 428 in rpadmin/admin_test.go

View workflow job for this annotation

GitHub Actions / lint

commentedOutCode: may want to remove commented-out code (gocritic)
}

mutex.RLock()
Expand Down

0 comments on commit 8a67afe

Please sign in to comment.