| Summary: | Web Inspector: Fix ESLint consistent-return warnings | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||||
| Component: | Web Inspector | Assignee: | Joseph Pecoraro <joepeck> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | commit-queue, graouts, joepeck, jonowells, timothy, webkit-bug-importer | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Attachments: |
|
||||||||
|
Description
Joseph Pecoraro
2014-09-09 15:10:29 PDT
Created attachment 237861 [details]
[PATCH] Proposed Fix
Created attachment 237863 [details]
[PATCH] Proposed Fix
Better fix, includes the change to the eslintrc file.
Comment on attachment 237863 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=237863&action=review > Source/WebInspectorUI/UserInterface/Controllers/FrameResourceManager.js:-389 > console.assert(!this._waitingForMainFrameResourceTreePayload); > - if (this._waitingForMainFrameResourceTreePayload) > - return; Why isn't the early return needed still? It would be bad to continue here. Comment on attachment 237863 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=237863&action=review >> Source/WebInspectorUI/UserInterface/Controllers/FrameResourceManager.js:-389 >> - return; > > Why isn't the early return needed still? It would be bad to continue here. Checking all the callers, this should never be reached if this._waitingForMainFrameResourceTreePayload. So rather then return null which could throw an exception earlier on, I just left the assert. Comment on attachment 237863 [details] [PATCH] Proposed Fix Clearing flags on attachment: 237863 Committed r173477: <http://trac.webkit.org/changeset/173477> All reviewed patches have been landed. Closing bug. |