mirror of
https://github.com/wneessen/go-mail.git
synced 2024-12-23 02:50:39 +01:00
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:
parent
f7cfe5289a
commit
3be41b1aea
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue