Skip to content

Commit c65bc39

Browse files
MegaManSecphated
authored andcommitted
Ensure that type of base64 is not a Number
1 parent 59e2884 commit c65bc39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function decodeBase64WithBufferFrom(base64) {
3131
}
3232

3333
function decodeBase64WithNewBuffer(base64) {
34-
if (typeof value === 'number') {
34+
if (typeof base64 === 'number') {
3535
throw new TypeError('The value to decode must not be of type number.');
3636
}
3737
return new Buffer(base64, 'base64').toString();

0 commit comments

Comments
 (0)