From 26541976817c3b8ffbc442327df82f88cbffbd93 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 15 Dec 2021 12:21:28 +0200 Subject: [PATCH] chore(cloudcmd) base64: lint --- common/base64.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/base64.js b/common/base64.js index 4d09b256..88365c6b 100644 --- a/common/base64.js +++ b/common/base64.js @@ -3,7 +3,7 @@ const isFn = (a) => typeof a === 'function'; module.exports.btoa = (str) => { - if (isFn(btoa)) + if (typeof btoa === 'function') return btoa(str); return Buffer