mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
7d82ef92e9
commit
b48507d92a
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ module.exports.delete = promisify((url, data, callback) => {
|
|||
data,
|
||||
callback,
|
||||
imgPosition : {
|
||||
top: !!data,
|
||||
top: Boolean(data),
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ function initConfig(Config, options) {
|
|||
|
||||
const names = Object.keys(options);
|
||||
for (const name of names) {
|
||||
const isConfig = !!config[name];
|
||||
const isConfig = Boolean(config[name]);
|
||||
const item = options[name];
|
||||
const isFunc = itype.function(item);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue