Use var when neccessary

This commit is contained in:
Jack251970 2025-04-05 23:04:12 +08:00
parent a8a305fce0
commit 5be732d533

View file

@ -163,7 +163,7 @@ namespace Flow.Launcher.Infrastructure
{
doublePin.Append(first[fullPinyin[..2]]);
if (second.TryGetValue(fullPinyin[2..], out string tmp))
if (second.TryGetValue(fullPinyin[2..], out var tmp))
{
doublePin.Append(tmp);
}
@ -176,7 +176,7 @@ namespace Flow.Launcher.Infrastructure
{
doublePin.Append(fullPinyin[0]);
if (second.TryGetValue(fullPinyin[1..], out string tmp))
if (second.TryGetValue(fullPinyin[1..], out var tmp))
{
doublePin.Append(tmp);
}