From d3841b766f9d37d557646003899f67525c5f755f Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Tue, 5 Oct 2021 17:04:09 +0200 Subject: chore: add eslint-plugin-unicorn (#733) --- recipes/pleroma/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'recipes/pleroma/index.js') diff --git a/recipes/pleroma/index.js b/recipes/pleroma/index.js index c6cf368..06a6e2d 100644 --- a/recipes/pleroma/index.js +++ b/recipes/pleroma/index.js @@ -6,9 +6,9 @@ module.exports = Ferdi => class Pleroma extends Ferdi { }); const data = await resp.json(); const version = data.version; - return typeof (version) === 'string' && version.indexOf('Pleroma') >= 0; - } catch (err) { - console.log('Pleroma server validation error', err); + return typeof (version) === 'string' && version.includes('Pleroma'); + } catch (error) { + console.log('Pleroma server validation error', error); } return false; } -- cgit v1.2.3-54-g00ecf