[wasm][cleanup] Avoid return-after-else
Use early returns instead. The general scheme is to return early in the abnormal case (e.g. error) and fall through to the end of the method in the normal case. R=ahaas@chromium.org Bug: v8:8238 Change-Id: I281d35f5aad1f51b6d476fdc685565d9819397bb Reviewed-on: https://chromium-review.googlesource.com/c/1317812 Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Reviewed-by: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#57245}
Showing
Please
register
or
sign in
to comment