Skip to content

Commit

Permalink
remove redundant containskey
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Apr 7, 2024
1 parent 9716052 commit 8fa9d0a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Alba/Internal/LightweightCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,7 @@ public TValue this[TKey key]
}
set
{
if (_values.ContainsKey(key))
{
_values[key] = value;
}
else
{
_values.Add(key, value);
}
_values[key] = value;
}
}

Expand Down

0 comments on commit 8fa9d0a

Please sign in to comment.