]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/logs-show.c
tree-wide: drop {} from one-line if blocks
[thirdparty/systemd.git] / src / shared / logs-show.c
index 9a5ffb7a6ca670f2245156e88f6ac2495a61ccca..7790c1a3c80c7f3b659150e338c52bf33d215c9e 100644 (file)
@@ -334,10 +334,9 @@ static int output_short(
                         break;
                 case OUTPUT_SHORT_PRECISE:
                         r = strftime(buf, sizeof(buf), "%b %d %H:%M:%S", gettime_r(&t, &tm));
-                        if (r > 0) {
+                        if (r > 0)
                                 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
                                          ".%06llu", (unsigned long long) (x % USEC_PER_SEC));
-                        }
                         break;
                 default:
                         r = strftime(buf, sizeof(buf), "%b %d %H:%M:%S", gettime_r(&t, &tm));