mirror of
https://github.com/servo/servo.git
synced 2025-06-29 03:23:41 +01:00
Invert conditional and return early from report_pending_exception <!-- Please describe your changes on the following line: --> Previously, almost the entire body of `report_pending_exception` was in a conditional branch. We now return early if the function body does not need to be executed. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13746 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they don't add any new functionality. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13755) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
codegen | ||
callback.rs | ||
cell.rs | ||
constant.rs | ||
conversions.rs | ||
error.rs | ||
guard.rs | ||
inheritance.rs | ||
interface.rs | ||
iterable.rs | ||
js.rs | ||
mod.rs | ||
mozmap.rs | ||
namespace.rs | ||
num.rs | ||
proxyhandler.rs | ||
refcounted.rs | ||
reflector.rs | ||
str.rs | ||
structuredclone.rs | ||
trace.rs | ||
utils.rs | ||
weakref.rs | ||
xmlname.rs |