Skip to content

Commit cda3ab1

Browse files
anandgupta42claude
andcommitted
fix: resolve pre-existing typecheck error in error.test.ts
Add default value for `url` parameter in `makeAPICallError` helper to satisfy `APICallError` constructor's required `string` type. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dd96543 commit cda3ab1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/test/provider/error.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function makeAPICallError(opts: {
1717
statusCode: opts.statusCode,
1818
responseBody: opts.responseBody,
1919
isRetryable: opts.isRetryable ?? false,
20-
url: opts.url,
20+
url: opts.url ?? "",
2121
responseHeaders: opts.responseHeaders,
2222
requestBodyValues: {},
2323
})

0 commit comments

Comments
 (0)