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 78e9f2e commit a2792ecCopy full SHA for a2792ec
dsc_lib/src/configure/mod.rs
@@ -316,9 +316,8 @@ impl Configurator {
316
// convert get result to set result
317
let set_result = match before_result {
318
GetResult::Resource(before_response) => {
319
- let after_result = match after_result {
320
- GetResult::Resource(get_response) => get_response,
321
- _ => return Err(DscError::NotSupported("Group resources not supported for delete".to_string())),
+ let GetResult::Resource(after_result) = after_result else {
+ return Err(DscError::NotSupported("Group resources not supported for delete".to_string()))
322
};
323
let before_value = serde_json::to_value(&before_response.actual_state)?;
324
let after_value = serde_json::to_value(&after_result.actual_state)?;
0 commit comments