| Summary: | Add null check in CachedResource::clearLoader | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alex Christensen <achristensen> | ||||
| Component: | New Bugs | Assignee: | Alex Christensen <achristensen> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | cdumez, ews-watchlist, ggaren, japhet, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Alex Christensen
2021-05-10 12:25:10 PDT
Created attachment 428193 [details]
Patch
Comment on attachment 428193 [details]
Patch
r=me
You can make this fewer lines of code if you keep it as ASSERT(m_loader).
Comment on attachment 428193 [details]
Patch
I agree. I have received the feedback many times in the past that the WebKit developers don't like having code that looks like this:
ASSERT(something);
if (something)
somethingIsTrue();
But for some reason they are ok with this. Maybe we should have another super-long style discussion on webkit-dev.
Committed r277292 (237553@main): <https://commits.webkit.org/237553@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 428193 [details]. |