From 261ac5add1e487702b68193a1c50f4552da4baef Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Mon, 22 Feb 2021 14:06:11 +0100
Subject: [PATCH] A lisible code, thanks prettier

---
 main.js | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/main.js b/main.js
index 22d7659..36fce4e 100644
--- a/main.js
+++ b/main.js
@@ -343,14 +343,13 @@ ipcMain.on('set-settings', (event, arg) => {
     config.content.client.port = arg.clientport;
 
     /* prettier-ignore */
-    config.content.log.lektord = arg.loglektord;
-    config.content.log.level = arg.loglevel.ERROR
-        ? 'error'
-        : arg.loglevel.WARNING
-        ? 'warning'
-        : arg.loglevel.INFO
-        ? 'info'
-        : 'debug';
+    {
+        config.content.log.lektord = arg.loglektord;
+        config.content.log.level   = arg.loglevel.ERROR ?   'error'
+                                   : arg.loglevel.WARNING ? 'warning'
+                                   : arg.loglevel.INFO ?    'info'
+                                   :                        'debug';
+    }
 
     config.flush();
 });
-- 
GitLab