mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(common) lint
This commit is contained in:
parent
2654197681
commit
228744bec8
1 changed files with 1 additions and 3 deletions
|
|
@ -1,7 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
const isFn = (a) => typeof a === 'function';
|
||||
|
||||
module.exports.btoa = (str) => {
|
||||
if (typeof btoa === 'function')
|
||||
return btoa(str);
|
||||
|
|
@ -12,7 +10,7 @@ module.exports.btoa = (str) => {
|
|||
};
|
||||
|
||||
module.exports.atob = (str) => {
|
||||
if (isFn(atob))
|
||||
if (typeof atob === 'function')
|
||||
return atob(str);
|
||||
|
||||
return Buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue