From 06e011cb830e059a4fba3f14fa2da3a2f693a4ad Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Tue, 13 Jun 2023 22:50:04 +0200 Subject: [PATCH] Fix warning --- .../Utilities/EmailSettings.cs | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Elektrifikatsiya/Elektrifikatsiya/Utilities/EmailSettings.cs b/src/Elektrifikatsiya/Elektrifikatsiya/Utilities/EmailSettings.cs index 4e53927..46f1575 100644 --- a/src/Elektrifikatsiya/Elektrifikatsiya/Utilities/EmailSettings.cs +++ b/src/Elektrifikatsiya/Elektrifikatsiya/Utilities/EmailSettings.cs @@ -4,20 +4,20 @@ namespace Elektrifikatsiya.Utilities; public class EmailSettings { - public string User { get; set; } - public string DefaultEmail { get; set; } - public string Key { get; set; } - public Dictionary Templates { get; set; } - public string SmtpServer { get; set; } - public int SmtpPort { get; set; } + public string User { get; set; } + public string DefaultEmail { get; set; } + public string Key { get; set; } + public Dictionary Templates { get; set; } + public string SmtpServer { get; set; } + public int SmtpPort { get; set; } - public Dictionary> CompiledTemplates = new(); - - public void CompileTemplates() - { - foreach ((string templateName, string templatePath) in Templates) - { - CompiledTemplates.Add(templateName, Handlebars.Compile(File.ReadAllText(templatePath))); - } + public Dictionary> CompiledTemplates { get; } = new(); + + public void CompileTemplates() + { + foreach ((string templateName, string templatePath) in Templates) + { + CompiledTemplates.Add(templateName, Handlebars.Compile(File.ReadAllText(templatePath))); + } } } \ No newline at end of file