fix: check for only undefined or null on the size

This commit is contained in:
Derrick Hammer 2023-09-02 06:53:23 -04:00
parent aa1ddfac3e
commit bd108376ba
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export function encodeCid(
throw new Error(); throw new Error();
} }
if (!size) { if (size === undefined || size === null) {
throw new Error("size required"); throw new Error("size required");
} }