mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 10:57:40 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -228,7 +228,9 @@ export function createCommandHandlers(context: CommandHandlerContext) {
|
||||
|
||||
const handleCommand = async (raw: string) => {
|
||||
const { name, args } = parseCommand(raw);
|
||||
if (!name) return;
|
||||
if (!name) {
|
||||
return;
|
||||
}
|
||||
switch (name) {
|
||||
case "help":
|
||||
chatLog.addSystem(
|
||||
@@ -247,7 +249,9 @@ export function createCommandHandlers(context: CommandHandlerContext) {
|
||||
}
|
||||
if (status && typeof status === "object") {
|
||||
const lines = formatStatusSummary(status as GatewayStatusSummary);
|
||||
for (const line of lines) chatLog.addSystem(line);
|
||||
for (const line of lines) {
|
||||
chatLog.addSystem(line);
|
||||
}
|
||||
break;
|
||||
}
|
||||
chatLog.addSystem("status: unknown response");
|
||||
|
||||
Reference in New Issue
Block a user