mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
refactor: remove dead code (#3337)
This commit is contained in:
1 parent
a19002652b
commit
93d1f8af46
1527 files changed
+21170
-73846
No files matched your search
@@ -15,16 +15,3 @@ export function matchesAnyPathPattern(path: string, patterns: Array<string>): bo
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function matchesExactOrNestedPath(path: string, prefix: string): boolean {
|
||||
return path === prefix || path.startsWith(`${prefix}/`);
|
||||
}
|
||||
|
||||
export function matchesAnyExactOrNestedPath(path: string, prefixes: Array<string>): boolean {
|
||||
for (const prefix of prefixes) {
|
||||
if (matchesExactOrNestedPath(path, prefix)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in new issue
Block a user