Warning CA1806 Main calls TryParse but does not explicitly check whether the conversion succeeded. Either use the return value in a conditional statement or verify that the call site expects that the out argument will be set to the default value when the conversion fails. PowerLauncher C:\Repos\PowerToys\src\modules\launcher\PowerLauncher\App.xaml.cs 45 Active
This commit is contained in:
ryanbodrug-microsoft 2020-06-17 17:09:59 -07:00
parent fa6d1bb23c
commit 51d0cedb29

View File

@ -42,7 +42,7 @@ namespace PowerLauncher
{
if (args?.Length > 0)
{
int.TryParse(args[0], out _powerToysPid);
_ = int.TryParse(args[0], out _powerToysPid);
}
using (var application = new App())