Skip to content

Commit 22bd57b

Browse files
committed
fix try_to_bool
1 parent 9305932 commit 22bd57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/vm/src/builtins/bool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl PyObjectRef {
4747

4848
// 1. Try nb_bool slot first
4949
if let Some(nb_bool) = slots.as_number.boolean.load() {
50-
return Ok(nb_bool(self.as_object().number(), vm)?);
50+
return nb_bool(self.as_object().number(), vm);
5151
}
5252

5353
// 2. Try sq_length slot

0 commit comments

Comments
 (0)