mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
Fix for:
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:
@@ -42,7 +42,7 @@ namespace PowerLauncher
|
|||||||
{
|
{
|
||||||
if (args?.Length > 0)
|
if (args?.Length > 0)
|
||||||
{
|
{
|
||||||
int.TryParse(args[0], out _powerToysPid);
|
_ = int.TryParse(args[0], out _powerToysPid);
|
||||||
}
|
}
|
||||||
|
|
||||||
using (var application = new App())
|
using (var application = new App())
|
||||||
|
|||||||
Reference in New Issue
Block a user