Skip to content

Commit

Permalink
String comparison improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Mar 27, 2024
1 parent 13d34be commit 8ffd830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CoinEx.Net/Clients/SpotApi/CoinExSocketClientSpotApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ protected override AuthenticationProvider CreateAuthenticationProvider(ApiCreden
return id;

var method = messageAccessor.GetValue<string>(_methodPath);
if (method == "deals.update")
if (string.Equals(method, "deals.update", StringComparison.Ordinal))
{
var symbol = messageAccessor.GetValue<string>(_symbolPathDeals);
return method + symbol;
}

if (method == "depth.update")
if (string.Equals(method, "depth.update", StringComparison.Ordinal))
{
var symbol = messageAccessor.GetValue<string>(_symbolPathDepth);
return method + symbol;
Expand Down

0 comments on commit 8ffd830

Please sign in to comment.