[X2Go-Commits] [pale-moon] 283/294: Fix variable used before being declared in UpdateUtils.jsm

git-admin at x2go.org git-admin at x2go.org
Sat Apr 27 08:58:34 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch upstream/28.5.0
in repository pale-moon.

commit bca1943ca7bc8282cbf83be4898ab1d7e9e5355f
Author: Matt A. Tobin <email at mattatobin.com>
Date:   Sun Apr 21 11:28:27 2019 -0400

    Fix variable used before being declared in UpdateUtils.jsm
    
    Fall out from #991
---
 toolkit/modules/UpdateUtils.jsm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toolkit/modules/UpdateUtils.jsm b/toolkit/modules/UpdateUtils.jsm
index fed7c76..4e796a2 100644
--- a/toolkit/modules/UpdateUtils.jsm
+++ b/toolkit/modules/UpdateUtils.jsm
@@ -31,9 +31,9 @@ this.UpdateUtils = {
    *        Whether or not to include the partner bits. Default: true.
    */
   getUpdateChannel(aIncludePartners = true) {
+    let defaults = Services.prefs.getDefaultBranch(null);
     let channel = defaults.getCharPref("app.update.channel",
                                        AppConstants.MOZ_UPDATE_CHANNEL);
-    let defaults = Services.prefs.getDefaultBranch(null);
 
     if (aIncludePartners) {
       try {

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git


More information about the x2go-commits mailing list