Skip to content

Commit cb70670

Browse files
committed
cleaned up
1 parent 0f98b65 commit cb70670

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vm/src/stdlib/math.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ where
284284
if !args.kwargs.is_empty() {
285285
Err(vm.new_type_error("Takes no keyword arguments".to_owned()))
286286
} else if args.args.is_empty() {
287-
return Ok(default);
287+
Ok(default)
288288
} else if args.args.len() == 1 {
289289
let a: PyObjectRef = args.args[0].clone();
290290
if let Some(aa) = a.payload_if_subclass::<PyInt>(vm) {

0 commit comments

Comments
 (0)