mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-11 23:53:27 -10:00
refactor(cli): remove unused warning helper (#39962)
Co-authored-by: Kit Langton <[email protected]>
This commit is contained in:
1 parent
c2db18c59b
commit
cfcd8de62a
1 file changed
-4
@@ -235,10 +235,6 @@ async function renderToolError(part: SessionMessageAssistantTool, directory: str
|
||||
UI.println(UI.Style.TEXT_NORMAL + "✗", UI.Style.TEXT_NORMAL + `${info.title} failed`)
|
||||
}
|
||||
|
||||
function warning(message: string) {
|
||||
UI.println(UI.Style.TEXT_WARNING_BOLD + "!", UI.Style.TEXT_NORMAL, message)
|
||||
}
|
||||
|
||||
function errorMessage(error: unknown) {
|
||||
if (error instanceof Error) return error.message
|
||||
if (typeof error === "object" && error !== null && "message" in error && typeof error.message === "string")
|
||||
|
||||
Reference in new issue
Block a user