Skip to content

Commit 37893da

Browse files
Update src/flow_service/mod.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com>
1 parent de3b9c1 commit 37893da

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

src/flow_service/mod.rs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,10 @@ impl FlowUpdateService {
198198
return true;
199199
}
200200

201-
if let Some(source) = &self.definition_source {
202-
self.runtime_functions = self
203-
.runtime_functions
204-
.clone()
205-
.into_iter()
206-
.map(|mut x| {
207-
x.definition_source = source.to_string();
208-
x
209-
})
210-
.collect()
211-
};
201+
let definition_source = self.definition_source.clone();
202+
for runtime_function in self.runtime_functions.iter_mut() {
203+
runtime_function.definition_source = definition_source.clone();
204+
}
212205

213206
log::info!(
214207
"Updating {} RuntimeFunctionDefinitions.",

0 commit comments

Comments
 (0)