Skip to content

Commit be600a2

Browse files
sklirgrusscam
authored andcommitted
Remove redundant word from exception message. (#4039)
1 parent 1bce948 commit be600a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Elasticsearch.Net/Utf8Json/Internal/ByteArrayStringHashTable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ public void Add(string key, T value)
5353
{
5454
if (!TryAddInternal(Encoding.UTF8.GetBytes(key), value))
5555
{
56-
throw new ArgumentException("Key was already exists. Key:" + key);
56+
throw new ArgumentException("Key already exists. Key:" + key);
5757
}
5858
}
5959

6060
public void Add(byte[] key, T value)
6161
{
6262
if (!TryAddInternal(key, value))
6363
{
64-
throw new ArgumentException("Key was already exists. Key:" + Encoding.UTF8.GetString(key));
64+
throw new ArgumentException("Key already exists. Key:" + Encoding.UTF8.GetString(key));
6565
}
6666
}
6767

0 commit comments

Comments
 (0)