mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 03:51:25 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -95,8 +95,12 @@ export async function loadProviderUsageSummary(
|
||||
|
||||
const snapshots = await Promise.all(tasks);
|
||||
const providers = snapshots.filter((entry) => {
|
||||
if (entry.windows.length > 0) return true;
|
||||
if (!entry.error) return true;
|
||||
if (entry.windows.length > 0) {
|
||||
return true;
|
||||
}
|
||||
if (!entry.error) {
|
||||
return true;
|
||||
}
|
||||
return !ignoredErrors.has(entry.error);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user