mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 00:12:18 +00:00
chore(style): repo-wide prettier sweep before v1.4.6 tag
Long-overdue prettier sweep; prettier had drifted vs. checked-in code across ~130 files (mostly long-argument line-break wrapping in TS and table-padding in markdown). Pure formatting — no semantic changes — and required to clear the v1.4.6 release gate's `pnpm format:check`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
67575180b8
commit
02b99553b9
135 files changed
+2159
-1583
No files matched your search
+15
-5
@@ -82,7 +82,9 @@ export async function sendTelegramMessage(
|
||||
...(options.replyMarkup ? { reply_markup: options.replyMarkup } : {}),
|
||||
});
|
||||
if (!json.ok) {
|
||||
getEvent()?.addWarning(`[telegram] sendMessage failed: ${json.description}`);
|
||||
getEvent()?.addWarning(
|
||||
`[telegram] sendMessage failed: ${json.description}`,
|
||||
);
|
||||
return { ok: false };
|
||||
}
|
||||
const messageId = (json.result as { message_id?: number })?.message_id;
|
||||
@@ -99,7 +101,9 @@ export async function answerTelegramCallbackQuery(
|
||||
...(text ? { text, show_alert: false } : {}),
|
||||
});
|
||||
if (!json.ok) {
|
||||
getEvent()?.addWarning(`[telegram] answerCallbackQuery failed: ${json.description}`);
|
||||
getEvent()?.addWarning(
|
||||
`[telegram] answerCallbackQuery failed: ${json.description}`,
|
||||
);
|
||||
}
|
||||
return json.ok;
|
||||
}
|
||||
@@ -116,7 +120,9 @@ export async function editMessageReplyMarkup(
|
||||
reply_markup: replyMarkup ?? { inline_keyboard: [] },
|
||||
});
|
||||
if (!json.ok) {
|
||||
getEvent()?.addWarning(`[telegram] editMessageReplyMarkup failed: ${json.description}`);
|
||||
getEvent()?.addWarning(
|
||||
`[telegram] editMessageReplyMarkup failed: ${json.description}`,
|
||||
);
|
||||
}
|
||||
return json.ok;
|
||||
}
|
||||
@@ -148,7 +154,9 @@ export async function deleteMessage(
|
||||
message_id: messageId,
|
||||
});
|
||||
if (!json.ok) {
|
||||
getEvent()?.addWarning(`[telegram] deleteMessage failed: ${json.description}`);
|
||||
getEvent()?.addWarning(
|
||||
`[telegram] deleteMessage failed: ${json.description}`,
|
||||
);
|
||||
}
|
||||
return json.ok;
|
||||
}
|
||||
@@ -160,7 +168,9 @@ export async function deleteTelegramWebhook(
|
||||
drop_pending_updates: false,
|
||||
});
|
||||
if (!json.ok) {
|
||||
getEvent()?.addWarning(`[telegram] deleteWebhook failed: ${json.description}`);
|
||||
getEvent()?.addWarning(
|
||||
`[telegram] deleteWebhook failed: ${json.description}`,
|
||||
);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user