mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2026-10-25 04:00:56 -04:00
More target-typed new and redundant paranthesis cleanup
This commit is contained in:
@@ -72,7 +72,7 @@ public class BotStrings : IBotStrings
|
||||
Log.Warning("'{CommandName}' doesn't exist in 'en-US' command strings. Please report this",
|
||||
commandName);
|
||||
|
||||
return new CommandStrings()
|
||||
return new()
|
||||
{
|
||||
Args = new[] {""},
|
||||
Desc = "?"
|
||||
|
||||
@@ -43,7 +43,7 @@ public class RedisBotStringsProvider : IBotStringsProvider
|
||||
return null;
|
||||
|
||||
var args = Array.ConvertAll(argsStr.Split('&'), HttpUtility.UrlDecode);
|
||||
return new CommandStrings()
|
||||
return new()
|
||||
{
|
||||
Args = args,
|
||||
Desc = descStr
|
||||
|
||||
Reference in New Issue
Block a user