Skip to content

Commit 58b8977

Browse files
committed
fix linting
1 parent e9d4567 commit 58b8977

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

  • rust/operator-binary/src/crd

rust/operator-binary/src/crd/mod.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,8 @@ impl v1alpha2::AirflowCluster {
444444
pub fn get_multi_gitsync_commands(&self) -> Vec<String> {
445445
let mut symlinks = Vec::<String>::new();
446446
for (i, _) in self.spec.cluster_config.dags_git_sync.iter().enumerate() {
447-
symlinks.push(
448-
format!("ln -s /stackable/app/git-{i} {AIRFLOW_DAGS_FOLDER}/")
449-
.to_string(),
450-
)
447+
symlinks
448+
.push(format!("ln -s /stackable/app/git-{i} {AIRFLOW_DAGS_FOLDER}/").to_string())
451449
}
452450
symlinks
453451
}
@@ -457,10 +455,8 @@ impl v1alpha2::AirflowCluster {
457455
pub fn get_kubernetes_executer_multi_gitsync_commands(&self) -> Vec<String> {
458456
let mut cp_commands = Vec::<String>::new();
459457
for (i, _) in self.spec.cluster_config.dags_git_sync.iter().enumerate() {
460-
cp_commands.push(
461-
format!("cp -r /stackable/app/git-{i} {AIRFLOW_DAGS_FOLDER}/")
462-
.to_string(),
463-
);
458+
cp_commands
459+
.push(format!("cp -r /stackable/app/git-{i} {AIRFLOW_DAGS_FOLDER}/").to_string());
464460
}
465461
// init-container seems to only accept one command line.
466462
vec![cp_commands.join(" && ")]

0 commit comments

Comments
 (0)