]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virLogGetOutputs: remove unnecessary braces
authorJán Tomko <jtomko@redhat.com>
Wed, 21 Feb 2018 17:33:25 +0000 (18:33 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 21 Feb 2018 17:34:49 +0000 (18:34 +0100)
Commit 9275def reduced the if block to one line without removing the
braces.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/util/virlog.c

index c03f4fb14e5544fa9e28958f9e2c1c24b001c0bd..dd927f0ba76b90c5571a7aea8c7573fa3f343a9e 100644 (file)
@@ -1219,9 +1219,8 @@ virLogGetOutputs(void)
         }
     }
 
-    if (virBufferError(&outputbuf)) {
+    if (virBufferError(&outputbuf))
         goto error;
-    }
 
     virLogUnlock();
     return virBufferContentAndReset(&outputbuf);