From d725c3bcb9c92062472156cc7354465a7be97626 Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Sun, 17 Jan 2021 20:23:51 +0100
Subject: [PATCH] DOC: Apply astyle

---
 src/base/json.c          | 9 +++------
 src/module/module_repo.c | 3 +--
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/base/json.c b/src/base/json.c
index 64dc3272..0ce5c380 100644
--- a/src/base/json.c
+++ b/src/base/json.c
@@ -113,9 +113,8 @@ json_parse(const char *str, int asked_level, json_parse_callback call, void *use
 
         /* End of a block */
         else if ((len = strspn(str, __JSON_END))) {
-            if (level == asked_level) {
+            if (level == asked_level)
                 call(NULL, NULL, 1, user);
-            }
             str    += len;
             level  -= len;
         }
@@ -133,9 +132,8 @@ json_parse(const char *str, int asked_level, json_parse_callback call, void *use
                 call(key, val, 0, user);
         }
 
-        if (level <= 0) {
+        if (level <= 0)
             return 0;
-        }
     }
     return 1;
 }
@@ -173,9 +171,8 @@ json_parse_get_count(const char *str, int level)
                 call(key, val, 0, user);
         }
 
-        if (level <= 0) {
+        if (level <= 0)
             return len;
-        }
     }
     return -1;
 }
diff --git a/src/module/module_repo.c b/src/module/module_repo.c
index 1a038ebe..0f064629 100644
--- a/src/module/module_repo.c
+++ b/src/module/module_repo.c
@@ -398,9 +398,8 @@ __handle_got_json_internal_callback(const char *key, const char *val, int comp,
         __handle_got_json_dl(kara, current_id);
     }
 
-    else {
+    else
         LOG_ERROR("REPO", "Invalid call to this function, 'comp', 'key' and 'val' are null...");
-    }
 }
 
 static inline void
-- 
GitLab