Skip to content

Bypasser.searchBypassed accepting only one argument #115

@petruki

Description

@petruki

Describe the bug
The bug does not prevent the Bypasser to work properly but should be fixed by removing 2 argument calls inside of the implementation.

To Reproduce
N/A

Expected behavior
Should work as-is.

Additional context
Value bypassedKeys is defined as global, thus shouldn't be necessary to add as an argument.

const existentKey = this.searchBypassed(key, bypassedKeys);
    static searchBypassed(key) {
        for (const bypassed of bypassedKeys) {
            if (bypassed.key === key) {
                return bypassed;
            }
        }
    }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions