style: apply prettier formatting

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Koshkoshinsk
2026-04-14 15:31:48 +00:00
parent 63746dfeb3
commit 8430e543c1

View File

@@ -164,9 +164,9 @@ export function getAskQuestionRender(
): { title: string; options: import('../channels/ask-question.js').NormalizedOption[] } | undefined { ): { title: string; options: import('../channels/ask-question.js').NormalizedOption[] } | undefined {
const q = getPendingQuestion(id); const q = getPendingQuestion(id);
if (q) return { title: q.title, options: q.options }; if (q) return { title: q.title, options: q.options };
const a = getDb() const a = getDb().prepare('SELECT title, options_json FROM pending_approvals WHERE approval_id = ?').get(id) as
.prepare('SELECT title, options_json FROM pending_approvals WHERE approval_id = ?') | { title: string; options_json: string }
.get(id) as { title: string; options_json: string } | undefined; | undefined;
if (!a || !a.title) return undefined; if (!a || !a.title) return undefined;
return { title: a.title, options: JSON.parse(a.options_json) }; return { title: a.title, options: JSON.parse(a.options_json) };
} }