Remove superfluous check that nsIDirectoryEnumerator returns a nsIFile

RESOLVED FIXED in mozilla17

Status

()

Toolkit
Add-ons Manager
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: Unfocused, Assigned: capella)

Tracking

unspecified
mozilla17
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Noticed in bug 779407, in XPIProvider.installDistributionAddons(), where it uses nsIDirectoryEnumerator it checks that the variable is an instance of nsIFile. This is unneeded, as the interface can only return that.
(Assignee)

Comment 1

6 years ago
Created attachment 652623 [details] [diff] [review]
Patch (v1)

Built / tested locally ... push to TRY as always...

https://tbpl.mozilla.org/?tree=Try&rev=853bf18b76a0
Attachment #652623 - Flags: review?(bmcbride)
Attachment #652623 - Flags: review?(bmcbride) → review+
https://hg.mozilla.org/mozilla-central/rev/78ad8bb8b030
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in before you can comment on or make changes to this bug.