chore: clear low-risk lint warnings

This commit is contained in:
ejclaw
2026-04-29 13:31:11 +09:00
parent 7ffd4c65e1
commit 4dcd4037f1
40 changed files with 36 additions and 161 deletions

View File

@@ -81,12 +81,6 @@ export interface SessionCommandDeps {
killProcess: () => boolean;
}
function resultToText(result: string | object | null | undefined): string {
if (!result) return '';
const raw = typeof result === 'string' ? result : JSON.stringify(result);
return formatOutbound(raw);
}
function agentResultToText(result: AgentResult): string {
const raw = getAgentOutputText({
result: result.result ?? null,
@@ -126,10 +120,6 @@ export async function handleSessionCommand(opts: {
const command = cmdMsg
? extractSessionCommand(cmdMsg.content, triggerPattern)
: null;
const normalizedCommandText = cmdMsg
? normalizeSessionCommandText(cmdMsg.content, triggerPattern)
: '';
if (!command || !cmdMsg) return { handled: false };
if (