Skip to content
Snippets Groups Projects
Verified Commit 8145bb78 authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

remove unused method receiver

parent 1512b1db
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ func (n standaloneNotifier) SendEmailRequest(req pkg.EmailNotificationRequest) {
}
// SendEmailRequest sends a pkg.EmailNotificationRequest to the integrated notification server
func (n integratedNotifier) SendEmailRequest(req pkg.EmailNotificationRequest) {
func (integratedNotifier) SendEmailRequest(req pkg.EmailNotificationRequest) {
server.HandleEmailRequest(req)
}
......
......@@ -159,17 +159,17 @@ var HTMLMailSender TemplateMailSender = htmlMailSender{}
var ICSMailSender MailSender = icsMailSender{}
// Send implements the MailSender interface
func (s noopSender) Send(_, _, _ string, _ ...Attachment) error {
func (noopSender) Send(_, _, _ string, _ ...Attachment) error {
return nil
}
// SendTemplate implements the TemplateMailSender interface
func (s noopSender) SendTemplate(_, _, _ string, _ any) error {
func (noopSender) SendTemplate(_, _, _ string, _ any) error {
return nil
}
// Send implements the MailSender interface
func (s plainTextMailSender) Send(to, subject, text string, attachments ...Attachment) error {
func (plainTextMailSender) Send(to, subject, text string, attachments ...Attachment) error {
mail := &email.Email{
From: fromAddress,
To: []string{to},
......@@ -195,7 +195,7 @@ func (s plainTextMailSender) SendTemplate(to, subject, template string, binding
}
// Send implements the MailSender interface
func (s htmlMailSender) Send(to, subject, text string, attachments ...Attachment) error {
func (htmlMailSender) Send(to, subject, text string, attachments ...Attachment) error {
mail := &email.Email{
From: fromAddress,
To: []string{to},
......@@ -221,7 +221,7 @@ func (s htmlMailSender) SendTemplate(to, subject, template string, binding any)
}
// Send implements the MailSender interface
func (s icsMailSender) Send(to, subject, text string, attachments ...Attachment) error {
func (icsMailSender) Send(to, subject, text string, attachments ...Attachment) error {
mail := &email.Email{
From: fromAddress,
To: []string{to},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment