Skip to content

Commit 9b10996

Browse files
committed
no return
1 parent 499b34c commit 9b10996

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm/src/exceptions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,9 @@ impl PyBaseException {
524524
#[pymethod(magic)]
525525
fn reduce(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyTupleRef {
526526
if let Some(dict) = zelf.as_object().dict().filter(|x| !x.is_empty()) {
527-
return vm.new_tuple((zelf.class().to_owned(), zelf.args(), dict));
527+
vm.new_tuple((zelf.class().to_owned(), zelf.args(), dict))
528528
} else {
529-
return vm.new_tuple((zelf.class().to_owned(), zelf.args()));
529+
vm.new_tuple((zelf.class().to_owned(), zelf.args()))
530530
}
531531
}
532532
}

0 commit comments

Comments
 (0)