Closed Bug 1537728 Opened 7 years ago Closed 7 years ago

Simplify shouldCheck variable declaration in BrowserGlue._checkForDefaultBrowser

Categories

(Firefox :: General, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 68
Tracking Status
firefox68 --- fixed

People

(Reporter: dao, Assigned: aqadri, Mentored)

Details

(Keywords: good-first-bug, Whiteboard: [lang=js])

Attachments

(1 file)

This:

let shouldCheck = AppConstants.DEBUG ? false :
                                       ShellService.shouldCheckDefaultBrowser;

(https://searchfox.org/mozilla-central/rev/7c20ad925005fbad7b8e08813115f1ec7fa1c248/browser/components/BrowserGlue.jsm#2598-2599)

... can be simplified to:

let shouldCheck = !AppConstants.DEBUG && ShellService.shouldCheckDefaultBrowser;

Hi Dão, Can I please work on this?

(In reply to Syeda Asra Arshia Qadri [:aqadri] from comment #1)

Hi Dão, Can I please work on this?

Go ahead.

Assignee: nobody → asra.qadri
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: