Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions rust/operator-binary/src/crd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -753,11 +753,7 @@ impl AirflowRole {
}

pub fn roles() -> Vec<String> {
let mut roles = vec![];
for role in Self::iter() {
roles.push(role.to_string())
}
roles
Self::iter().map(|r| r.to_string()).collect()
}

pub fn listener_class_name(&self, airflow: &v1alpha2::AirflowCluster) -> Option<String> {
Expand Down
Loading