Skip to content

Commit de3b9c1

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 1315652 commit de3b9c1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/flow_service/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,10 @@ impl FlowUpdateService {
245245
return true;
246246
}
247247

248-
let definition_source = self.definition_source.clone();
249-
for flow_type in self.flow_types.iter_mut() {
250-
flow_type.definition_source = definition_source.clone();
248+
if let Some(source) = &self.definition_source {
249+
for flow_type in self.flow_types.iter_mut() {
250+
flow_type.definition_source = Some(source.to_string());
251+
}
251252
}
252253

253254
log::info!("Updating {} FlowTypes.", self.flow_types.len());

0 commit comments

Comments
 (0)