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.
This commit is contained in:
Winni Neessen 2024-10-27 16:10:46 +01:00
parent f7cfe5289a
commit 3be41b1aea
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -27,7 +27,7 @@ func TestMsg_AttachFile_unixOnly(t *testing.T) {
t.Errorf("failed to remove temp file: %s", err) 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) t.Fatalf("failed to chmod temp file to 0000: %s", err)
} }
message := NewMsg() message := NewMsg()