Fix typo in `TernaryInferredTypeMismatchAnalyzer`

fixes fa361ce06
This commit is contained in:
YoshiRulz 2024-09-16 23:39:22 +10:00
parent 9b57adfab0
commit 6dbee180e9
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
3 changed files with 2 additions and 3 deletions

View File

@ -36,7 +36,7 @@ dotnet_diagnostic.BHI1120.severity = silent
# Check result of IDictionary.TryGetValue, or discard it if default(T) is desired
dotnet_diagnostic.BHI1200.severity = error
# Inferred type of bramches of ternary expression in interpolation don't match
# Inferred type of branches of ternary expression in interpolation don't match
dotnet_diagnostic.BHI1210.severity = error
# Call to FirstOrDefault when elements are of a value type; FirstOrNull may have been intended

View File

@ -11,8 +11,7 @@ public sealed class TernaryInferredTypeMismatchAnalyzer : DiagnosticAnalyzer
{
private static readonly DiagnosticDescriptor DiagTernaryInferredTypeMismatch = new(
id: "BHI1210",
title: "Inferred type of bramches of ternary expression in interpolation don't match",
// messageFormat: "Inferred type of ternary expression is object (missing ToString call?)",
title: "Inferred type of branches of ternary expression in interpolation don't match",
messageFormat: "{0}",
category: "Usage",
defaultSeverity: DiagnosticSeverity.Warning,

Binary file not shown.