fix match/if-let can be simplified to ?
This commit is contained in:
committed by
Bennet Bleßmann
parent
495bcd73f2
commit
a639fec153
@@ -4152,9 +4152,7 @@ impl Machine {
|
||||
|
||||
let mut functor_writer = Heap::functor_writer(functor);
|
||||
|
||||
if let Err(e) = functor_writer(heap) {
|
||||
return Err(e);
|
||||
}
|
||||
functor_writer(heap)?;
|
||||
|
||||
num_functors += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user