Skip to content

Commit 266e965

Browse files
chore: generate
1 parent 2a480a9 commit 266e965

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

packages/opencode/src/util/error.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@ export function errorMessage(error: unknown): string {
2626
return error.message
2727
}
2828

29-
if (
30-
isRecord(error) &&
31-
isRecord(error.data) &&
32-
typeof error.data.message === "string" &&
33-
error.data.message
34-
) {
29+
if (isRecord(error) && isRecord(error.data) && typeof error.data.message === "string" && error.data.message) {
3530
return error.data.message
3631
}
3732

0 commit comments

Comments
 (0)