From b48507d92a2c73a953f25b4296f813b0986cbaf9 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 28 May 2020 23:52:46 +0300 Subject: [PATCH] chore(cloudcmd) lint --- client/dom/io.js | 2 +- client/modules/view.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/dom/io.js b/client/dom/io.js index f47ccd62..cac32215 100644 --- a/client/dom/io.js +++ b/client/dom/io.js @@ -37,7 +37,7 @@ module.exports.delete = promisify((url, data, callback) => { data, callback, imgPosition : { - top: !!data, + top: Boolean(data), }, }); }); diff --git a/client/modules/view.js b/client/modules/view.js index e192dcf9..58f34eb3 100644 --- a/client/modules/view.js +++ b/client/modules/view.js @@ -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);