From 73894af9ff9c2e2c2622ee32d294565f0af21feb Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 24 Aug 2023 17:59:35 +0200 Subject: [PATCH] contrib/apparmor: format code with gofumpt Signed-off-by: Sebastiaan van Stijn --- contrib/apparmor/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/apparmor/main.go b/contrib/apparmor/main.go index d67890d265..899d8378ed 100644 --- a/contrib/apparmor/main.go +++ b/contrib/apparmor/main.go @@ -25,11 +25,11 @@ func main() { } // make sure /etc/apparmor.d exists - if err := os.MkdirAll(path.Dir(apparmorProfilePath), 0755); err != nil { + if err := os.MkdirAll(path.Dir(apparmorProfilePath), 0o755); err != nil { log.Fatal(err) } - f, err := os.OpenFile(apparmorProfilePath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644) + f, err := os.OpenFile(apparmorProfilePath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0o644) if err != nil { log.Fatal(err) }