Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jg-rp committed May 15, 2024
1 parent a257c75 commit 8b85d98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/path/functions/match.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class Match implements FilterFunction {
this.#cache = new LRUCache(this.cacheSize);
}

// eslint-disable-next-line sonarjs/cognitive-complexity
public call(s: string, pattern: string): boolean {
if (this.cacheSize > 0) {
const re = this.#cache.get(pattern);
Expand Down
1 change: 1 addition & 0 deletions src/path/functions/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export class Search implements FilterFunction {
this.#cache = new LRUCache(this.cacheSize);
}

// eslint-disable-next-line sonarjs/cognitive-complexity
public call(s: string, pattern: string): boolean {
if (this.cacheSize > 0) {
const re = this.#cache.get(pattern);
Expand Down

0 comments on commit 8b85d98

Please sign in to comment.