From: Christian Ehrhardt Date: Thu, 13 Aug 2020 13:39:26 +0000 (+0200) Subject: apparmor: fix code style error in reduced if statement X-Git-Tag: v6.7.0-rc1~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a132ba9035fa4e383f4a6a4894ff32d632a3237d;p=thirdparty%2Flibvirt.git apparmor: fix code style error in reduced if statement sc_spacing-check FAIL reporting a case of "Curly brackets around single-line body:" in a recent commit. Fixes: d9c21f4b "apparmor: allow adding permanent per guest rules" Signed-off-by: Christian Ehrhardt --- diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index 4b66422b8f..12429278fb 100644 --- a/src/security/virt-aa-helper.c +++ b/src/security/virt-aa-helper.c @@ -1489,9 +1489,8 @@ main(int argc, char **argv) rc = parserLoad(ctl->uuid); } else if (ctl->cmd == 'R' || ctl->cmd == 'D') { rc = parserRemove(ctl->uuid); - if (ctl->cmd == 'D') { + if (ctl->cmd == 'D') unlink(include_file); - } } else if (ctl->cmd == 'c' || ctl->cmd == 'r') { char *included_files = NULL; g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;