Skip to content

Commit bf89a19

Browse files
committed
fix(lib-storage): remove converting zero to undefined for zero byte length
1 parent d4325dd commit bf89a19

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
@@ -438,7 +438,7 @@ export class Upload extends EventEmitter {
438438
}
439439

440440
private __validateUploadPart(dataPart: RawDataPart): void {
441-
const actualPartSize = byteLength(dataPart.data) || undefined;
441+
const actualPartSize = byteLength(dataPart.data);
442442

443443
if (actualPartSize === undefined) {
444444
throw new Error(

0 commit comments

Comments
 (0)