GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (34)

src/util/elementContains.js (1 issue)

Severity
1
export function elementContains(el, ...classes) {
2
3
    if (!el || !classes || !classes.length) {
4
        throw Error('Function requires a dom node and a classname');
5
    }
6
7
    while (el && el !== document.body) {
8
        if (el && el.classList) {
9
            for (let i = 0; i < classes.length; i++) {
10
                if (el.classList.contains(classes[i])) {
11
                    return true;
12
                }
13
            }
14
        }
15
        el = el.parentNode;
16
    }
0 ignored issues
show
There is no return statement in this branch, but you do return something in other branches. Did you maybe miss it? If you do not want to return anything, consider adding return undefined; explicitly.
Loading history...
17
}