fix: check for only undefined or null on the size
This commit is contained in:
parent
aa1ddfac3e
commit
bd108376ba
|
@ -35,7 +35,7 @@ export function encodeCid(
|
|||
throw new Error();
|
||||
}
|
||||
|
||||
if (!size) {
|
||||
if (size === undefined || size === null) {
|
||||
throw new Error("size required");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue