Fix clippy warning (#25)

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2023-09-27 08:40:36 -07:00
committed by GitHub
parent 8a9652b8d2
commit b7420aceba
3 changed files with 38 additions and 63 deletions
+3 -1
View File
@@ -547,7 +547,9 @@ impl<'source> Interpreter<'source> {
let field_value = &value[&key];
if field_value == &Value::Undefined {
if raise_error {}
if raise_error {
return Err(span.error("Expected value, got undefined."));
}
return Ok(false);
}