Visual Studio C#7 suggestions

This commit is contained in:
Christopher F
2017-04-23 15:23:06 -04:00
parent 6000b15c4d
commit 431b7fbd9f
21 changed files with 80 additions and 165 deletions

View File

@@ -378,8 +378,7 @@ namespace Discord.API
private bool ProcessMessage(API.Rpc.RpcFrame msg)
{
RpcRequest requestTracker;
if (_requests.TryGetValue(msg.Nonce.Value.Value, out requestTracker))
if (_requests.TryGetValue(msg.Nonce.Value.Value, out RpcRequest requestTracker))
{
if (msg.Event.GetValueOrDefault("") == "ERROR")
{