We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69fa3a8 commit cfd2a02Copy full SHA for cfd2a02
dsc/src/util.rs
@@ -543,18 +543,19 @@ pub fn set_dscconfigroot(config_path: &str) -> String
543
/// # Returns
544
///
545
/// * `bool` - True if the test result is in the desired state, false otherwise
546
+#[must_use]
547
pub fn in_desired_state(test_result: &ResourceTestResult) -> bool {
548
match &test_result.result {
549
TestResult::Resource(result) => {
- return result.in_desired_state;
550
+ result.in_desired_state
551
},
552
TestResult::Group(results) => {
553
for result in results {
- if !in_desired_state(&result) {
554
+ if !in_desired_state(result) {
555
return false;
556
}
557
- return true;
558
+ true
559
560
561
0 commit comments