Skip to content

Commit c109033

Browse files
Update adapter/cron/src/main.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 f60ad02 commit c109033

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

adapter/cron/src/main.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,13 @@ impl IdentifiableFlow for Time {
110110
&& self.now.hour() == next.hour()
111111
&& self.now.minute() == next.minute();
112112

113-
match is_match {
114-
true => {
115-
log::debug!("Flow with id: {} was a match", flow.flow_id);
116-
is_match
117-
}
118-
false => {
119-
log::debug!("Flow with id: {} was no match", flow.flow_id);
120-
is_match
121-
}
113+
if is_match {
114+
log::debug!("Flow with id: {} was a match", flow.flow_id);
115+
} else {
116+
log::debug!("Flow with id: {} was no match", flow.flow_id);
122117
}
118+
119+
is_match
123120
}
124121
}
125122

0 commit comments

Comments
 (0)