Skip to content

Commit fa2df49

Browse files
SteveL-MSFTCopilot
andcommitted
Update dsc_lib/src/functions/empty.rs
Co-authored-by: Copilot <[email protected]>
1 parent 17610e9 commit fa2df49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsc_lib/src/functions/empty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl Function for Empty {
4141
}
4242

4343
if let Some(object) = args[0].as_object() {
44-
return Ok(Value::Bool(object.keys().len() == 0));
44+
return Ok(Value::Bool(object.is_empty()));
4545
}
4646

4747
if let Some(string) = args[0].as_str() {

0 commit comments

Comments
 (0)