useless conversion

This commit is contained in:
2021-06-29 18:07:26 +02:00
parent b5360af6de
commit 8873f458b4
2 changed files with 3 additions and 3 deletions

View File

@@ -256,7 +256,7 @@ pub fn default_context() -> HashMapContext {
});
}
let b = arg[0].as_boolean()?;
if b.into() {
if b {
Ok(arg[1].clone())
} else {
Ok(arg[2].clone())