mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
Fix clippy warning (#25)
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
8a9652b8d2
commit
b7420aceba
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user