Skip to content

Commit a6e2feb

Browse files
committed
rename variable
1 parent 506fbcf commit a6e2feb

File tree

1 file changed

+2
-2
lines changed
  • rust/stackable-cockpit/src/utils/k8s

1 file changed

+2
-2
lines changed

rust/stackable-cockpit/src/utils/k8s/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,12 @@ impl Client {
334334
.filter(|(_, capability)| {
335335
let listing_supported = capability.supports_operation(discovery::verbs::LIST);
336336

337-
let scope_matching = match namespace {
337+
let capability_scope_matches = match namespace {
338338
Some(_) => capability.scope == kube::discovery::Scope::Namespaced,
339339
None => capability.scope == kube::discovery::Scope::Cluster,
340340
};
341341

342-
listing_supported && scope_matching
342+
listing_supported && capability_scope_matches
343343
});
344344

345345
for (api_resource, _) in api_resources {

0 commit comments

Comments
 (0)