mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-23 14:10:50 +01:00
Compare commits
No commits in common. "d91c62fbea18c72483ffa088191a1a22911053b2" and "3e4d8e3acdb46dfa503541c2e66319f307232551" have entirely different histories.
d91c62fbea
...
3e4d8e3acd
4 changed files with 9 additions and 16 deletions
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
|
@ -54,7 +54,7 @@ jobs:
|
|||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@29d86d22a34ea372b1bbf3b2dced2e25ca6b3384 # v3.26.1
|
||||
uses: github/codeql-action/init@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
|
@ -65,7 +65,7 @@ jobs:
|
|||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@29d86d22a34ea372b1bbf3b2dced2e25ca6b3384 # v3.26.1
|
||||
uses: github/codeql-action/autobuild@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
@ -79,4 +79,4 @@ jobs:
|
|||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@29d86d22a34ea372b1bbf3b2dced2e25ca6b3384 # v3.26.1
|
||||
uses: github/codeql-action/analyze@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
|
||||
|
|
2
.github/workflows/scorecards.yml
vendored
2
.github/workflows/scorecards.yml
vendored
|
@ -75,6 +75,6 @@ jobs:
|
|||
|
||||
# Upload the results to GitHub's code scanning dashboard.
|
||||
- name: "Upload to code-scanning"
|
||||
uses: github/codeql-action/upload-sarif@29d86d22a34ea372b1bbf3b2dced2e25ca6b3384 # v3.26.1
|
||||
uses: github/codeql-action/upload-sarif@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0
|
||||
with:
|
||||
sarif_file: results.sarif
|
||||
|
|
11
msg.go
11
msg.go
|
@ -684,16 +684,9 @@ func (m *Msg) GetBoundary() string {
|
|||
return m.boundary
|
||||
}
|
||||
|
||||
// SetAttachments sets the attachments of the message.
|
||||
func (m *Msg) SetAttachments(files []*File) {
|
||||
m.attachments = files
|
||||
}
|
||||
|
||||
// SetAttachements sets the attachments of the message.
|
||||
//
|
||||
// Deprecated: use SetAttachments instead.
|
||||
// SetAttachements sets the attachements of the message.
|
||||
func (m *Msg) SetAttachements(files []*File) {
|
||||
m.SetAttachments(files)
|
||||
m.attachments = files
|
||||
}
|
||||
|
||||
// UnsetAllAttachments unset the attachments of the message.
|
||||
|
|
|
@ -1413,7 +1413,7 @@ func TestMsg_SetAttachments(t *testing.T) {
|
|||
for _, f := range tt.files {
|
||||
files = append(files, &File{Name: f})
|
||||
}
|
||||
m.SetAttachments(files)
|
||||
m.SetAttachements(files)
|
||||
if len(m.attachments) != len(files) {
|
||||
t.Errorf("SetAttachements() failed. Number of attachments expected: %d, got: %d", len(files),
|
||||
len(m.attachments))
|
||||
|
@ -1448,7 +1448,7 @@ func TestMsg_UnsetAllAttachments(t *testing.T) {
|
|||
for _, f := range tt.attachments {
|
||||
files = append(files, &File{Name: f})
|
||||
}
|
||||
m.SetAttachments(files)
|
||||
m.SetAttachements(files)
|
||||
|
||||
if len(m.attachments) != len(files) {
|
||||
t.Errorf("SetAttachements() failed. Number of attachments expected: %d, got: %d", len(files),
|
||||
|
@ -1610,7 +1610,7 @@ func TestMsg_UnsetAllParts(t *testing.T) {
|
|||
for _, f := range tt.attachments {
|
||||
attachments = append(attachments, &File{Name: f})
|
||||
}
|
||||
m.SetAttachments(attachments)
|
||||
m.SetAttachements(attachments)
|
||||
if len(m.attachments) != len(attachments) {
|
||||
t.Errorf("SetAttachements() failed. Number of attachments files expected: %d, got: %d",
|
||||
len(attachments), len(m.attachments))
|
||||
|
|
Loading…
Reference in a new issue