Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mattthiessendev committed Jan 9, 2025
1 parent 6e92dee commit dbc7ab9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions webapi/Services/EmailSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class EmailSender : IEmailSender

public EmailSender()
{
Client = new SmtpClient();
this.Client = new SmtpClient();
}

/// <summary>
Expand All @@ -23,8 +23,8 @@ public EmailSender()
/// <param name="body">Email content</param>
public void Send(string sender, string recipient, string subject, string body)
{
var message = new MailMessage(sender, recipient, subject, body);
using var message = new MailMessage(sender, recipient, subject, body);

Client.Send(message);
this.Client.Send(message);
}
}
2 changes: 1 addition & 1 deletion webapi/Services/IEmailSender.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace CopilotChat.WebApi.Services;

interface IEmailSender
public interface IEmailSender
{
void Send(string sender, string recipient, string subject, string body);
}

0 comments on commit dbc7ab9

Please sign in to comment.