Skip to content

Commit 57f3edd

Browse files
committed
fix(lib-storage): type fix, allow undefined endpoint
1 parent 45cd1cd commit 57f3edd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lib-storage/src/Upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class Upload extends EventEmitter {
129129

130130
const resolved = await Promise.all([this.client.send(new PutObjectCommand(params)), clientConfig?.endpoint?.()]);
131131
const putResult = resolved[0];
132-
let endpoint: Endpoint = resolved[1];
132+
let endpoint: Endpoint | undefined = resolved[1];
133133

134134
if (!endpoint) {
135135
endpoint = toEndpointV1(

0 commit comments

Comments
 (0)