We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 499b34c commit 9b10996Copy full SHA for 9b10996
vm/src/exceptions.rs
@@ -524,9 +524,9 @@ impl PyBaseException {
524
#[pymethod(magic)]
525
fn reduce(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyTupleRef {
526
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));
+ vm.new_tuple((zelf.class().to_owned(), zelf.args(), dict))
528
} else {
529
- return vm.new_tuple((zelf.class().to_owned(), zelf.args()));
+ vm.new_tuple((zelf.class().to_owned(), zelf.args()))
530
}
531
532
0 commit comments