From 928d7aecd5018ed71f0409fdad95f7c1b2a768bb Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 27 Sep 2019 23:14:52 -0400 Subject: [PATCH] Directly return rather than use a temporary variable --- ext/fg/js/source.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ext/fg/js/source.js b/ext/fg/js/source.js index 2e73be06..d8b1977b 100644 --- a/ext/fg/js/source.js +++ b/ext/fg/js/source.js @@ -95,12 +95,10 @@ class TextSourceRange { } const style = window.getComputedStyle(node); - const hidden = + return !( style.visibility === 'hidden' || style.display === 'none' || - parseFloat(style.fontSize) === 0; - - return !hidden; + parseFloat(style.fontSize) === 0); } static seekForward(node, offset, length) {