useless conversion

This commit is contained in:
mulimoen committed 2021-06-29 18:07:26 +02:00
1 parent b5360af6de
commit 8873f458b4
2 files changed
+3 -3

No files matched your search

+1 -1
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())