Fix lint failures (one from the merge in rev a97e078dcacb, one apparently preexisting. r=bzbarsky, No bug
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 13 Mar 2018 00:38:57 -0400
changeset 766821 be7993b626921feeda9076ebba9ec0384805a969
parent 766820 be79e1a9a14edc52011236643e501ee585b1e0c0
child 766822 ce0bde354931425a042449771d1d81f54fa316b9
push id102399
push userbmo:mratcliffe@mozilla.com
push dateTue, 13 Mar 2018 10:12:19 +0000
reviewersbzbarsky, No
milestone61.0a1
Fix lint failures (one from the merge in rev a97e078dcacb, one apparently preexisting. r=bzbarsky, No bug
devtools/client/shared/widgets/TreeWidget.js
devtools/client/storage/test/browser_storage_dynamic_updates_sessionStorage.js
--- a/devtools/client/shared/widgets/TreeWidget.js
+++ b/devtools/client/shared/widgets/TreeWidget.js
@@ -273,17 +273,17 @@ TreeWidget.prototype = {
   },
 
   /**
    * Check if an item exists.
    *
    * @param {array} item
    *        The array of ids leading up to the item.
    */
-  exists: function (item) {
+  exists: function(item) {
     let bookmark = this.root;
 
     for (let id of item) {
       if (bookmark.items.has(id)) {
         bookmark = bookmark.items.get(id);
       } else {
         return false;
       }
--- a/devtools/client/storage/test/browser_storage_dynamic_updates_sessionStorage.js
+++ b/devtools/client/storage/test/browser_storage_dynamic_updates_sessionStorage.js
@@ -75,17 +75,17 @@ add_task(async function() {
       ["sessionStorage", "http://test1.example.org"],
       [ ]
     ],
   ]);
 
   await finishTests();
 });
 
-asyn function setSessionStorageItem(key, value) {
+async function setSessionStorageItem(key, value) {
   await ContentTask.spawn(gBrowser.selectedBrowser, [key, value],
     ([innerKey, innerValue]) => {
       content.wrappedJSObject.sessionStorage.setItem(innerKey, innerValue);
     }
   );
 }
 
 async function removeSessionStorageItem(key) {