From 3be41b1aeaa20b4e73d13ce9fad7c67390b47966 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sun, 27 Oct 2024 16:10:46 +0100 Subject: [PATCH] Fix chmod notation to use octal literal syntax Updated the chmod call in msg_nowin_test.go to use the consistent and proper octal literal syntax (0o000) instead of 0000. This change improves code readability and aligns with Go convention. --- msg_nowin_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg_nowin_test.go b/msg_nowin_test.go index 1964b41..127a7fc 100644 --- a/msg_nowin_test.go +++ b/msg_nowin_test.go @@ -27,7 +27,7 @@ func TestMsg_AttachFile_unixOnly(t *testing.T) { t.Errorf("failed to remove temp file: %s", err) } }) - if err = os.Chmod(tempfile.Name(), 0000); err != nil { + if err = os.Chmod(tempfile.Name(), 0o000); err != nil { t.Fatalf("failed to chmod temp file to 0000: %s", err) } message := NewMsg()