Skip to content

Commit

Permalink
clearer check for missing key
Browse files Browse the repository at this point in the history
  • Loading branch information
saxxon66 committed Mar 31, 2019
1 parent 80d5012 commit 2e0609d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Src/SimFeedbackTelemetryProvider/telemetry/Session.cs
Expand Up @@ -57,7 +57,10 @@ public object Get(string key, object defaultValue=null )
{
try
{
return _dict[key];
if (_dict.ContainsKey(key))
return _dict[key];
else
return defaultValue;
}
catch (KeyNotFoundException) { return defaultValue; }
}
Expand Down

0 comments on commit 2e0609d

Please sign in to comment.