From a132ba9035fa4e383f4a6a4894ff32d632a3237d Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt Date: Thu, 13 Aug 2020 15:39:26 +0200 Subject: [PATCH] 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 --- src/security/virt-aa-helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.47.2