From 0ba14b8bb7e2bbf29a4dcf9d2027b0826388372b Mon Sep 17 00:00:00 2001 From: orenom Date: Sat, 23 Jul 2022 17:40:09 +0200 Subject: [PATCH] remove semicolons --- src/utils.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils.js b/src/utils.js index 4fb29a5..2bc1871 100644 --- a/src/utils.js +++ b/src/utils.js @@ -70,11 +70,11 @@ module.exports = function(redis) { */ // load custom language specific languages - let lang_suffix = ''; - let load_custom_styles = ['fr', 'ko']; + let lang_suffix = '' + let load_custom_styles = ['fr', 'ko'] if(load_custom_styles.includes(lang)) { - lang_suffix = '_' + lang; + lang_suffix = '_' + lang } if(theme === 'white') { @@ -450,11 +450,11 @@ module.exports = function(redis) { } this.customLogos = (req) => { - const lang = getLang(req); + const lang = getLang(req) if(lang === 'fr') { return path.join(__dirname, '..', 'static', 'fr', path.basename(req.url)) } - return false; + return false } this.getLang = (req=false) => {