From 6dbee180e90d8910b6eb21d97e0bd9de8a3e0b7d Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Mon, 16 Sep 2024 23:39:22 +1000 Subject: [PATCH] Fix typo in `TernaryInferredTypeMismatchAnalyzer` fixes fa361ce06 --- .global.editorconfig.ini | 2 +- .../TernaryInferredTypeMismatchAnalyzer.cs | 3 +-- References/BizHawk.Analyzer.dll | Bin 42496 -> 42496 bytes 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.global.editorconfig.ini b/.global.editorconfig.ini index e0615944a4..711d075af8 100644 --- a/.global.editorconfig.ini +++ b/.global.editorconfig.ini @@ -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 diff --git a/ExternalProjects/BizHawk.Analyzer/TernaryInferredTypeMismatchAnalyzer.cs b/ExternalProjects/BizHawk.Analyzer/TernaryInferredTypeMismatchAnalyzer.cs index 435981214f..7aa8011d34 100644 --- a/ExternalProjects/BizHawk.Analyzer/TernaryInferredTypeMismatchAnalyzer.cs +++ b/ExternalProjects/BizHawk.Analyzer/TernaryInferredTypeMismatchAnalyzer.cs @@ -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, diff --git a/References/BizHawk.Analyzer.dll b/References/BizHawk.Analyzer.dll index 5b0f2b86acc31729097f795364b6d483f821c12f..39d8a8346672bb786dd2324fa46e3a33d430070d 100644 GIT binary patch delta 245 zcmZoT!_;twX+j6fBh7`IHuh*0G3IUFUKA=Jkad~)gYfzpE?pCrs5`XAdTf^I{v)7a zXkut)m}F#_W?*SDHc3rPGB!v`Hb^lyOtVZhG)plxNinxbu}n%yH8(d(wn#JF>@X*XktK`w!_UbZ z<^~8%m3d-$-#*KCp-VyMUHQ)?lLhAaD?kN%6`_Ja)s<&bTEgDXcf0t-ApYy-`gt2! z{7o1v8B!R`7>pTA7*ZJ$8Ipi310b0UBvTm784MZHfGQG!v>A|Z3RDFWwE&WqKvgL~ UJ?21Y1XOPURB5=mesLoc0Hl*qeE