From 04bcc4d9ab848ec7aaa7c9f5fe7a64006b7a0d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Wed, 21 Feb 2018 18:33:25 +0100 Subject: [PATCH] virLogGetOutputs: remove unnecessary braces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 9275def reduced the if block to one line without removing the braces. Signed-off-by: Ján Tomko --- src/util/virlog.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/virlog.c b/src/util/virlog.c index c03f4fb14e..dd927f0ba7 100644 --- a/src/util/virlog.c +++ b/src/util/virlog.c @@ -1219,9 +1219,8 @@ virLogGetOutputs(void) } } - if (virBufferError(&outputbuf)) { + if (virBufferError(&outputbuf)) goto error; - } virLogUnlock(); return virBufferContentAndReset(&outputbuf);