Directly return rather than use a temporary variable
This commit is contained in:
parent
8110de514e
commit
928d7aecd5
@ -95,12 +95,10 @@ class TextSourceRange {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const style = window.getComputedStyle(node);
|
const style = window.getComputedStyle(node);
|
||||||
const hidden =
|
return !(
|
||||||
style.visibility === 'hidden' ||
|
style.visibility === 'hidden' ||
|
||||||
style.display === 'none' ||
|
style.display === 'none' ||
|
||||||
parseFloat(style.fontSize) === 0;
|
parseFloat(style.fontSize) === 0);
|
||||||
|
|
||||||
return !hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static seekForward(node, offset, length) {
|
static seekForward(node, offset, length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user