-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persist imix output through connection failuers #328
Persist imix output through connection failuers #328
Conversation
Codecov Report
@@ Coverage Diff @@
## main #328 +/- ##
==========================================
+ Coverage 74.57% 74.63% +0.05%
==========================================
Files 96 96
Lines 6380 6402 +22
==========================================
+ Hits 4758 4778 +20
- Misses 1535 1537 +2
Partials 87 87
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
implants/imix/src/main.rs
Outdated
if loop_count_max.is_some() { | ||
loop_count += 1; | ||
if (loop_count >= loop_count_max.context("loop_count_max shouldn't be None")?) { return Ok(()); }; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can get rewritten using if let
if let Some(count_max) = loop_count_max {
loop_count += 1;
if loop_count >= count_max {
return Ok(())
}
} else {
// Handle it being None
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oooh that is cleaner 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #305