We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f98b65 commit cb70670Copy full SHA for cb70670
1 file changed
vm/src/stdlib/math.rs
@@ -284,7 +284,7 @@ where
284
if !args.kwargs.is_empty() {
285
Err(vm.new_type_error("Takes no keyword arguments".to_owned()))
286
} else if args.args.is_empty() {
287
- return Ok(default);
+ Ok(default)
288
} else if args.args.len() == 1 {
289
let a: PyObjectRef = args.args[0].clone();
290
if let Some(aa) = a.payload_if_subclass::<PyInt>(vm) {
0 commit comments