contrib/apparmor: format code with gofumpt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-08-24 17:59:35 +02:00
parent ce01d779df
commit 73894af9ff
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -25,11 +25,11 @@ func main() {
} }
// make sure /etc/apparmor.d exists // 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) 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 { if err != nil {
log.Fatal(err) log.Fatal(err)
} }