diff --git a/src/Discord.Net.Commands/CommandParser.cs b/src/Discord.Net.Commands/CommandParser.cs index 64d975bf5..9b6c1cc03 100644 --- a/src/Discord.Net.Commands/CommandParser.cs +++ b/src/Discord.Net.Commands/CommandParser.cs @@ -40,13 +40,8 @@ namespace Discord.Commands char GetMatch(IReadOnlyDictionary dict, char ch) { // get the corresponding value for the key, if it exists - if (dict != null) - { - if (dict.TryGetValue(c, out var value)) - { - return value; - } - } + if (dict != null && dict.TryGetValue(c, out var value)) + return value; // or get the default pair of the default double quote return '\"'; }