Skip to content

Commit ee32152

Browse files
committed
fix(lib-storage): compute requestChecksumCalculation outside of promise check
1 parent 67006b8 commit ee32152

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
@@ -200,9 +200,9 @@ export class Upload extends EventEmitter {
200200
}
201201

202202
private async __createMultipartUpload(): Promise<CreateMultipartUploadCommandOutput> {
203+
const requestChecksumCalculation = await this.client.config.requestChecksumCalculation();
203204
if (!this.createMultiPartPromise) {
204205
const createCommandParams = { ...this.params, Body: undefined };
205-
const requestChecksumCalculation = await this.client.config.requestChecksumCalculation();
206206
if (requestChecksumCalculation === "WHEN_SUPPORTED") {
207207
createCommandParams.ChecksumAlgorithm = ChecksumAlgorithm.CRC32;
208208
}

0 commit comments

Comments
 (0)