From cf282aa351cbc58691fb1b2fb4764830247cdbe8 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 25 Jul 2022 08:16:50 +0530 Subject: eslint needs to be executed at the top-level to actually work --- src/internal-server/app/ImageHelper.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/internal-server/app/ImageHelper.js') diff --git a/src/internal-server/app/ImageHelper.js b/src/internal-server/app/ImageHelper.js index e7c981a1d..905ba81ab 100644 --- a/src/internal-server/app/ImageHelper.js +++ b/src/internal-server/app/ImageHelper.js @@ -6,7 +6,7 @@ const path = require('path'); const fs = require('fs-extra'); const { API_VERSION } = require('../../environment-remote'); -const moveIcon = async (icon) => { +const moveIcon = async icon => { const iconsPath = path.join(Env.get('USER_PATH'), 'icons'); await fs.ensureDir(iconsPath); @@ -24,6 +24,11 @@ const moveIcon = async (icon) => { return !icon.moved() ? '-1' : iconId; }; -const deduceIconUrl = (iconId) => iconId ? `http://${Env.get('HOST')}:${Env.get('PORT')}/${API_VERSION}/icon/${iconId}` : null +const deduceIconUrl = iconId => + iconId + ? `http://${Env.get('HOST')}:${Env.get( + 'PORT', + )}/${API_VERSION}/icon/${iconId}` + : null; module.exports = { moveIcon, deduceIconUrl }; -- cgit v1.2.3-70-g09d2