Skip to content

Commit ee5978e

Browse files
committed
minor refactor
1 parent 34499c3 commit ee5978e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rust/operator-binary/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,19 +288,18 @@ fn references_config_map(
288288
return false;
289289
};
290290

291-
let config_map_name = config_map.name_any();
292291
superset
293292
.spec
294293
.cluster_config
295294
.vector_aggregator_config_map_name
296-
== Some(config_map_name.to_owned())
295+
== Some(config_map.name_any())
297296
|| match superset.spec.cluster_config.authorization.clone() {
298297
Some(superset_authorization) => {
299298
superset_authorization
300299
.role_mapping_from_opa
301300
.opa
302301
.config_map_name
303-
== config_map_name
302+
== config_map.name_any()
304303
}
305304
None => false,
306305
}

0 commit comments

Comments
 (0)