Severity Code Description Project File Line Suppression State

Warning CA1801 Parameter text of method DelayedCheck is never used. Remove the parameter or use it in the method body. PowerLauncher C:\Repos\PowerToys\src\modules\launcher\PowerLauncher\MainWindow.xaml.cs 303 Active
This commit is contained in:
ryanbodrug-microsoft 2020-06-18 08:53:31 -07:00
parent 6ea181c286
commit 10d6a1fa54

View File

@ -306,12 +306,12 @@ namespace PowerLauncher
_viewModel.QueryText = text;
var latestTimeOfTyping = DateTime.Now;
Task.Run(() => DelayedCheck(latestTimeOfTyping, text));
Task.Run(() => DelayedCheck(latestTimeOfTyping));
s_lastTimeOfTyping = latestTimeOfTyping;
}
}
private async Task DelayedCheck(DateTime latestTimeOfTyping, string text)
private async Task DelayedCheck(DateTime latestTimeOfTyping)
{
await Task.Delay(millisecondsToWait);
if (latestTimeOfTyping.Equals(s_lastTimeOfTyping))