mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) base64: lint
This commit is contained in:
parent
205d641e75
commit
2654197681
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue