Bug 1369104 - Fix eslint error on highlighters-overlay.js. r=pbro draft
authorAlexandre Poirot <poirot.alex@gmail.com>
Wed, 31 May 2017 18:38:04 +0200
changeset 587160 76c0acfc1986889529cd36baa9bcb7721e1fa026
parent 586849 925230851743b9a969a3142f00aea5014a33cb02
child 631206 99c45702b5a256f5aeb6cc3d65149b8c055a121c
push id61638
push userbmo:poirot.alex@gmail.com
push dateWed, 31 May 2017 16:39:31 +0000
reviewerspbro
bugs1369104
milestone55.0a1
Bug 1369104 - Fix eslint error on highlighters-overlay.js. r=pbro MozReview-Commit-ID: 6lhfILmmEGC
devtools/client/inspector/shared/highlighters-overlay.js
--- a/devtools/client/inspector/shared/highlighters-overlay.js
+++ b/devtools/client/inspector/shared/highlighters-overlay.js
@@ -272,17 +272,19 @@ HighlightersOverlay.prototype = {
     if (this.highlighters[type]) {
       return this.highlighters[type];
     }
 
     let highlighter;
 
     try {
       highlighter = yield utils.getHighlighterByType(type);
-    } catch (e) {}
+    } catch (e) {
+      // Ignore any error
+    }
 
     if (!highlighter) {
       return null;
     }
 
     this.highlighters[type] = highlighter;
     return highlighter;
   }),