Skip to content

Commit

Permalink
simplify if let
Browse files Browse the repository at this point in the history
  • Loading branch information
StackOverflowExcept1on committed Sep 15, 2023
1 parent 86ae9f9 commit f7147b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions utils/wasm-gen/src/generator/syscalls/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,8 @@ impl<'a, 'b> SysCallsImportsGenerator<'a, 'b> {
name = InvocableSysCall::Precise(sys_call).to_str()
);

if let Err(err) = generate_method(self, sys_call) {
match err {
PreciseSysCallError::Arbitrary(err) => return Err(err),
}
if let Err(PreciseSysCallError::Arbitrary(err)) = generate_method(self, sys_call) {
return Err(err);
}
}
}
Expand Down

0 comments on commit f7147b1

Please sign in to comment.