mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 02:08:27 -04:00
More target-typed new and redundant paranthesis cleanup
This commit is contained in:
@@ -21,7 +21,7 @@ public static class ConfigParsers
|
||||
{
|
||||
try
|
||||
{
|
||||
output = new CultureInfo(input);
|
||||
output = new(input);
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
|
@@ -66,7 +66,7 @@ public abstract class ConfigServiceBase<TSettings> : IConfigService
|
||||
// if file is deleted, regenerate it with default values
|
||||
if (!File.Exists(_filePath))
|
||||
{
|
||||
_data = new TSettings();
|
||||
_data = new();
|
||||
Save();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user