From fa15a8282e6ff7dcd83a3f80a3beb5434ce88d6a Mon Sep 17 00:00:00 2001 From: JustOff Date: Sat, 14 Apr 2018 19:53:25 +0300 Subject: [PATCH] Suppress false-positive warning about unreachable code after return in nsContextMenu.js --- application/palemoon/base/content/nsContextMenu.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/palemoon/base/content/nsContextMenu.js b/application/palemoon/base/content/nsContextMenu.js index 017ab87cc3..1fe592b52a 100644 --- a/application/palemoon/base/content/nsContextMenu.js +++ b/application/palemoon/base/content/nsContextMenu.js @@ -1394,9 +1394,8 @@ nsContextMenu.prototype = { isDisabledForEvents: function(aNode) { let ownerDoc = aNode.ownerDocument; - return - ownerDoc.defaultView && - ownerDoc.defaultView + return ownerDoc.defaultView && + ownerDoc.defaultView .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIDOMWindowUtils) .isNodeDisabledForEvents(aNode);