diff --git a/src/base/json.c b/src/base/json.c
index 64dc327250787ce40a4396018a8e2a3a2fba6bab..0ce5c380f6e850a468b831c6a9b0d881b86086db 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 1a038ebe622c95ffbbca03f7e385862f7901be5b..0f06462957bb1f392e57912f4531ba7a05b963a3 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