Skip to content

Commit 8cbc5db

Browse files
committed
Merge branch 'echo-schema' of github.com:SteveL-MSFT/DSC into echo-schema
2 parents 0527d97 + a9030d3 commit 8cbc5db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/dscecho/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ fn main() {
4040
}
4141
},
4242
Output::Object(ref mut obj) => {
43-
*obj = redact(&Value::Object(obj.clone())).as_object().unwrap().clone();
43+
*obj = redact(&Value::Object(obj.clone()))
44+
.as_object()
45+
.expect("Expected redact() to return a Value::Object")
46+
.clone();
4447
},
4548
_ => {}
4649
}

0 commit comments

Comments
 (0)