mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 09:57:40 +00:00
chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -75,16 +75,10 @@ vi.mock("../channels/plugins/index.js", () => ({
|
||||
status: {
|
||||
collectStatusIssues: (accounts: Array<Record<string, unknown>>) =>
|
||||
accounts
|
||||
.filter(
|
||||
(account) =>
|
||||
typeof account.lastError === "string" && account.lastError,
|
||||
)
|
||||
.filter((account) => typeof account.lastError === "string" && account.lastError)
|
||||
.map((account) => ({
|
||||
channel: "signal",
|
||||
accountId:
|
||||
typeof account.accountId === "string"
|
||||
? account.accountId
|
||||
: "default",
|
||||
accountId: typeof account.accountId === "string" ? account.accountId : "default",
|
||||
message: `Channel error: ${String(account.lastError)}`,
|
||||
})),
|
||||
},
|
||||
@@ -105,16 +99,10 @@ vi.mock("../channels/plugins/index.js", () => ({
|
||||
status: {
|
||||
collectStatusIssues: (accounts: Array<Record<string, unknown>>) =>
|
||||
accounts
|
||||
.filter(
|
||||
(account) =>
|
||||
typeof account.lastError === "string" && account.lastError,
|
||||
)
|
||||
.filter((account) => typeof account.lastError === "string" && account.lastError)
|
||||
.map((account) => ({
|
||||
channel: "imessage",
|
||||
accountId:
|
||||
typeof account.accountId === "string"
|
||||
? account.accountId
|
||||
: "default",
|
||||
accountId: typeof account.accountId === "string" ? account.accountId : "default",
|
||||
message: `Channel error: ${String(account.lastError)}`,
|
||||
})),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user