Simplify KeyAnalyzer (#88709)
authorMarc Brooks <IDisposable@gmail.com>
Mon, 17 Jul 2023 15:14:13 +0000 (10:14 -0500)
committerGitHub <noreply@github.com>
Mon, 17 Jul 2023 15:14:13 +0000 (11:14 -0400)
commit56552c2288363f71b9492bec12be8d1549d3f13e
treeb9ba3750dfade3c06b3d142522a64623c0540007
parent1380a0b327a24a924ef3f63f144558c742da0a3c
Simplify KeyAnalyzer (#88709)

The assignment `bool canSwitchIgnoreCaseToCaseSensitive = ignoreCase;` can just be `bool canSwitchIgnoreCaseToCaseSensitive = true;` since we're just tested that value a couple lines up
src/libraries/System.Collections.Immutable/src/System/Collections/Frozen/String/KeyAnalyzer.cs