Bug 1600547 and bug 1611623 - fix linting errors. rs=linting DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Mon, 10 Feb 2020 22:18:05 +1300
changeset 38154 c4ca8ba04d380749dda576fd4fc84de059abaed2
parent 38153 5c29bf6eb78be3eda24e484bc4bf8ed5f7cfe3aa
child 38155 739f20b22fcc3317945918183702e17cf0b46b4d
push id398
push userclokep@gmail.com
push dateMon, 09 Mar 2020 19:10:28 +0000
reviewerslinting
bugs1600547, 1611623
Bug 1600547 and bug 1611623 - fix linting errors. rs=linting DONTBUILD :(
common/src/viewSource.js
mail/components/extensions/parent/ext-messages.js
--- a/common/src/viewSource.js
+++ b/common/src/viewSource.js
@@ -45,19 +45,17 @@ var viewSourceChrome = {
     if (event.target.hasAttribute("charset")) {
       let charset = event.target.getAttribute("charset");
       // Replace generic Japanese with Shift_JIS which will also auto-detect
       // ISO-2022-JP and EUC-JP.
       if (charset == "Japanese") {
         charset = "Shift_JIS";
       }
       gBrowser.characterSet = charset;
-      gBrowser.reloadWithFlags(
-        Ci.nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE
-      );
+      gBrowser.reloadWithFlags(Ci.nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE);
     }
   },
 
   /**
    * Reloads the browser, bypassing the network cache.
    */
   reload() {
     gBrowser.reloadWithFlags(
--- a/mail/components/extensions/parent/ext-messages.js
+++ b/mail/components/extensions/parent/ext-messages.js
@@ -233,17 +233,20 @@ this.messages = class extends ExtensionA
           }
           if (queryInfo.fromDate || queryInfo.toDate) {
             query.dateRange([queryInfo.fromDate, queryInfo.toDate]);
           }
           let validTags;
           if (queryInfo.tags) {
             validTags = MailServices.tags
               .getAllTags()
-              .filter(tag => tag.key in queryInfo.tags.tags && queryInfo.tags.tags[tag.key]);
+              .filter(
+                tag =>
+                  tag.key in queryInfo.tags.tags && queryInfo.tags.tags[tag.key]
+              );
             if (validTags.length === 0) {
               // No messages will match this. Just return immediately.
               return messageListTracker.startList([], context.extension);
             }
             query.tags(...validTags);
             validTags = validTags.map(tag => tag.key);
           }