Skip to content

Commit 5be732d

Browse files
committed
Use var when neccessary
1 parent a8a305f commit 5be732d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher.Infrastructure/PinyinAlphabet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private static string ToDoublePin(string fullPinyin)
163163
{
164164
doublePin.Append(first[fullPinyin[..2]]);
165165

166-
if (second.TryGetValue(fullPinyin[2..], out string tmp))
166+
if (second.TryGetValue(fullPinyin[2..], out var tmp))
167167
{
168168
doublePin.Append(tmp);
169169
}
@@ -176,7 +176,7 @@ private static string ToDoublePin(string fullPinyin)
176176
{
177177
doublePin.Append(fullPinyin[0]);
178178

179-
if (second.TryGetValue(fullPinyin[1..], out string tmp))
179+
if (second.TryGetValue(fullPinyin[1..], out var tmp))
180180
{
181181
doublePin.Append(tmp);
182182
}

0 commit comments

Comments
 (0)