Skip to content

Commit

Permalink
Removed duplicated condition (hint from SonarQube) (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouaix authored and tlil committed Dec 19, 2019
1 parent e54e678 commit 96608f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphQL.Conventions/Types/Utilities/Identifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static int Compare(string unencodedIdentifier1, string unencodedIdentifie
{
var parts1 = GetComponents(unencodedIdentifier1);
var parts2 = GetComponents(unencodedIdentifier2);
if (parts1.Item2 != null && parts1.Item2 != null)
if (parts1.Item2 != null && parts2.Item2 != null)
{
int typeComparison = string.Compare(parts1.Item1, parts2.Item1, StringComparison.Ordinal);
return typeComparison == 0
Expand Down

0 comments on commit 96608f1

Please sign in to comment.