Skip to content

Commit

Permalink
chore: fix string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
latonz committed Aug 2, 2023
1 parent e1e8908 commit 1bd3477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Riok.Mapperly/SyntaxProvider.Roslyn4.0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static IncrementalValuesProvider<ClassDeclarationSyntax> GetClassDeclarat

var attributeContainingTypeSymbol = attributeSymbol.ContainingType;
var fullName = attributeContainingTypeSymbol.ToDisplayString();
if (fullName == MapperGenerator.MapperAttributeName)
if (string.Equals(fullName, MapperGenerator.MapperAttributeName, StringComparison.Ordinal))
return classDeclaration;
}
}
Expand Down

0 comments on commit 1bd3477

Please sign in to comment.