mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 03:40:36 +00:00
chore: Enable some "perf" lint rules.
This commit is contained in:
@@ -225,11 +225,11 @@ function auditGatewayServicePath(
|
||||
.split(getPathModule(platform).delimiter)
|
||||
.map((entry) => entry.trim())
|
||||
.filter(Boolean);
|
||||
const normalizedParts = parts.map((entry) => normalizePathEntry(entry, platform));
|
||||
const normalizedParts = new Set(parts.map((entry) => normalizePathEntry(entry, platform)));
|
||||
const normalizedExpected = new Set(expected.map((entry) => normalizePathEntry(entry, platform)));
|
||||
const missing = expected.filter((entry) => {
|
||||
const normalized = normalizePathEntry(entry, platform);
|
||||
return !normalizedParts.includes(normalized);
|
||||
return !normalizedParts.has(normalized);
|
||||
});
|
||||
if (missing.length > 0) {
|
||||
issues.push({
|
||||
|
||||
Reference in New Issue
Block a user