From 0d5239c551136fcc333ae299bf814f7963752c75 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Mon, 29 May 2017 13:13:39 +0200
Subject: [PATCH] [enh] Code indentation

---
 server/controller/webmin.js | 42 ++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/server/controller/webmin.js b/server/controller/webmin.js
index 6c87093..15671a7 100644
--- a/server/controller/webmin.js
+++ b/server/controller/webmin.js
@@ -59,18 +59,18 @@ function WebAdmin (duniterServer, startServices, stopServices, listDuniterUIPlug
   let pluggedDALP = Promise.resolve(); // Initially, the node is already plugged in
 
 
-    this.pushEntity = (req, rawer, type) => co(function *() {
-        let rawDocument = rawer(req);
-        rawDocument = dos2unix(rawDocument);
-        const written = yield server.writeRaw(rawDocument, type);
-        try {
-            return written.json();
-        } catch (e) {
-            logger.error('Written:', written);
-            logger.error(e);
-            throw e;
-        }
-    });
+  this.pushEntity = (req, rawer, type) => co(function *() {
+    let rawDocument = rawer(req);
+    rawDocument = dos2unix(rawDocument);
+    const written = yield server.writeRaw(rawDocument, type);
+    try {
+      return written.json();
+    } catch (e) {
+      logger.error('Written:', written);
+      logger.error(e);
+      throw e;
+    }
+  });
 
   function replugDAL() {
     return co(function *() {
@@ -542,18 +542,18 @@ function WebAdmin (duniterServer, startServices, stopServices, listDuniterUIPlug
   });
 
   function plugForConf() {
-      return co(function *() {
-          yield server.plugFileSystem();
-          yield server.loadConf();
-          // bmapi = yield bma(server, null, true);
-      });
+    return co(function *() {
+      yield server.plugFileSystem();
+      yield server.loadConf();
+      // bmapi = yield bma(server, null, true);
+    });
   }
 
   function plugForDAL() {
-      return co(function *() {
-          yield pluggedConfP;
-          return server.initDAL();
-      });
+    return co(function *() {
+      yield pluggedConfP;
+      return server.initDAL();
+    });
   }
 
   /*********
-- 
GitLab