Skip to content
Merged
Prev Previous commit
Next Next commit
Remove comments added before the explicit checkAncestors argument w…
…hich is now self evident
  • Loading branch information
eoghanmurray committed Nov 8, 2023
commit bae073996680432843a8a7a972abedf5412bffec
2 changes: 0 additions & 2 deletions packages/rrweb-snapshot/src/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ export function needMaskingText(
if (el === null) return false;
if (typeof maskTextClass === 'string') {
if (checkAncestors) {
// we haven't already checked parents
if (el.closest(`.${maskTextClass}`)) return true;
} else {
if (el.classList.contains(maskTextClass)) return true;
Expand All @@ -330,7 +329,6 @@ export function needMaskingText(
}
if (maskTextSelector) {
if (checkAncestors) {
// we haven't already checked parents
if (el.closest(maskTextSelector)) return true;
} else {
if (el.matches(maskTextSelector)) return true;
Expand Down