From a752a673701719dc3751e23994067afbfddc2786 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Wed, 18 Jul 2018 09:14:14 +0300 Subject: [PATCH] eslint --- src/app/filters-page.js | 52 ++++++++++++++++++++-------------------- src/background/mysql.js | 4 ++-- src/background/sphinx.js | 2 +- src/background/spider.js | 4 ++-- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/app/filters-page.js b/src/app/filters-page.js index 5c63cd1..fc59768 100644 --- a/src/app/filters-page.js +++ b/src/app/filters-page.js @@ -130,38 +130,38 @@ export default class ConfigPage extends Page {
- { - if(!this.options.filters) - return + { + if(!this.options.filters) + return - this.options.filters.adultFilter = checked - this.forceUpdate() - }} - /> + this.options.filters.adultFilter = checked + this.forceUpdate() + }} + />
- * - {__('* - enabled means ignoring all adult content')} -
+ * - {__('* - enabled means ignoring all adult content')}
+ { this.options.filters // bug with props - && -
- { - this.options.filters.size = size - this.options.filters.maxSize = maxSize - this.options.filters.sizeEnabled = enabled - this.forceUpdate() - }} /> -
+ && +
+ { + this.options.filters.size = size + this.options.filters.maxSize = maxSize + this.options.filters.sizeEnabled = enabled + this.forceUpdate() + }} /> +
} { diff --git a/src/background/mysql.js b/src/background/mysql.js index d272504..40db40c 100644 --- a/src/background/mysql.js +++ b/src/background/mysql.js @@ -41,7 +41,7 @@ const expand = (sphinx) => { { if(values[val] === null) continue; - + names += '`' + val + '`,'; valuesData += sphinx.escape(values[val]) + ','; } @@ -61,7 +61,7 @@ const expand = (sphinx) => { { data = `(${parseValues(values)})` } - + let query = `INSERT INTO ${table}(${names}) VALUES ${data}`; queryCall(query, (...responce) => { if(callback) diff --git a/src/background/sphinx.js b/src/background/sphinx.js index 527344e..485318e 100644 --- a/src/background/sphinx.js +++ b/src/background/sphinx.js @@ -256,7 +256,7 @@ module.exports = (callback, dataDirectory, onClose) => { const probablyCoruptedFiles = await findFiles(`${sphinx.directoryPath}/**/*.+(meta|ram)`) let brokenFiles = await Promise.all(probablyCoruptedFiles.map(file => checkNullFile(file))) brokenFiles = probablyCoruptedFiles.filter((file, index) => !brokenFiles[index]) - + brokenFiles.forEach(file => { console.log('FIXDB: clean file because of broken', file) fs.unlinkSync(file) diff --git a/src/background/spider.js b/src/background/spider.js index 2a51013..3a99590 100644 --- a/src/background/spider.js +++ b/src/background/spider.js @@ -269,7 +269,7 @@ app.get('*', function(req, res) return loadBootstrapPeers('https://api.myjson.com/bins/1e5rmh') - loadBootstrapPeers('https://jsonblob.com/api/jsonBlob/013a4415-3533-11e8-8290-a901f3cf34aa') + loadBootstrapPeers('https://jsonblob.com/api/jsonBlob/013a4415-3533-11e8-8290-a901f3cf34aa') }) } @@ -787,7 +787,7 @@ app.get('*', function(req, res) // save feed await feed.save() - + // stop bootstrap interval if(config.p2pBootstrap && p2pBootstrapLoop) {