Skip to content

Commit

Permalink
refactor: replace list iteration with List.replaceAll method
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Gupta <tushars2609@gmail.com>
  • Loading branch information
tusharwebd authored and rohanKanojia committed Aug 5, 2024
1 parent 1d9b769 commit bd80572
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,7 @@ public static void resolveRelativeVolumeBindings(File baseDir, RunVolumeConfigur
return;
}

for (int i = 0; i < bindings.size(); i++) {
bindings.set(i, resolveRelativeVolumeBinding(baseDir, bindings.get(i)));
}
bindings.replaceAll(binding -> resolveRelativeVolumeBinding(baseDir, binding));
}

/**
Expand Down

0 comments on commit bd80572

Please sign in to comment.