Suppress false-positive warning about unreachable code after return in nsContextMenu.js

This commit is contained in:
JustOff 2018-04-14 19:53:25 +03:00 • committed by Roy Tam
commit fa15a8282e

View file

@ -1394,9 +1394,8 @@ nsContextMenu.prototype = {
isDisabledForEvents: function(aNode) { isDisabledForEvents: function(aNode) {
let ownerDoc = aNode.ownerDocument; let ownerDoc = aNode.ownerDocument;
return return ownerDoc.defaultView &&
ownerDoc.defaultView && ownerDoc.defaultView
ownerDoc.defaultView
.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIDOMWindowUtils) .getInterface(Components.interfaces.nsIDOMWindowUtils)
.isNodeDisabledForEvents(aNode); .isNodeDisabledForEvents(aNode);