From 9c58d0ee01808fd9c665ba0083a5f92ab64c8ad0 Mon Sep 17 00:00:00 2001 From: Chris Johnston Date: Mon, 29 Jan 2018 15:48:22 -0800 Subject: [PATCH] minor formatting changes to CommandParser --- src/Discord.Net.Commands/CommandParser.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Discord.Net.Commands/CommandParser.cs b/src/Discord.Net.Commands/CommandParser.cs index 2e055802f..924e80e41 100644 --- a/src/Discord.Net.Commands/CommandParser.cs +++ b/src/Discord.Net.Commands/CommandParser.cs @@ -42,8 +42,7 @@ namespace Discord.Commands // get the corresponding value for the key, if it exists if (dict != null) { - char value; - if (dict.TryGetValue(c, out value)) + if (dict.TryGetValue(c, out var value)) { return value; } @@ -101,7 +100,7 @@ namespace Discord.Commands continue; } - if(IsOpenQuote(command._quotationAliases, c)) + if (IsOpenQuote(command._quotationAliases, c)) { curPart = ParserPart.QuotedParameter; matchQuote = GetMatch(command._quotationAliases, c); @@ -125,7 +124,7 @@ namespace Discord.Commands } else if (curPart == ParserPart.QuotedParameter) { - if(c == matchQuote) + if (c == matchQuote) { argString = argBuilder.ToString(); //Remove quotes lastArgEndPos = curPos + 1;