Closed Bug 793967 Opened 12 years ago Closed 12 years ago

Refactor Proxy::getElementIfPresent()

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: n.nethercote, Assigned: n.nethercote)

Details

Attachments

(1 file)

Proxy::getElementIfPresent() is hard to read.
This patch refactors Proxy::getElementIfPresent().  

This (a) fixes a "suggest brackets around assignment used as truth value"
warning;  (b) complies with the standard "no else after return" style, and
(c) is much easier to read.
Attachment #664371 - Flags: review?(ejpbruel)
1.5 week review ping.  This is a small patch, please review it soon!  Thanks.
Comment on attachment 664371 [details] [diff] [review]
Refactor Proxy::getElementIfPresent().

Review of attachment 664371 [details] [diff] [review]:
-----------------------------------------------------------------

Sorry this took so long. This is much clearer. Thanks!
Attachment #664371 - Flags: review?(ejpbruel) → review+
https://hg.mozilla.org/mozilla-central/rev/29edec35dae2
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: