]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/strv.c
tree-wide: drop {} from one-line if blocks
[thirdparty/systemd.git] / src / basic / strv.c
index aa68d290f615ca5cc381d3d30949f5b3e25965be..b9aef64b1586b78974800787d3ffbef2a2eb18ce 100644 (file)
@@ -270,9 +270,8 @@ char **strv_split_newlines(const char *s) {
         if (n <= 0)
                 return l;
 
-        if (isempty(l[n-1])) {
+        if (isempty(l[n - 1]))
                 l[n - 1] = mfree(l[n - 1]);
-        }
 
         return l;
 }
@@ -291,9 +290,8 @@ int strv_split_extract(char ***t, const char *s, const char *separators, Extract
                 r = extract_first_word(&s, &word, separators, flags);
                 if (r < 0)
                         return r;
-                if (r == 0) {
+                if (r == 0)
                         break;
-                }
 
                 if (!GREEDY_REALLOC(l, allocated, n + 2))
                         return -ENOMEM;