mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-19 15:03:36 +08: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:
parent
fa6d1bb23c
commit
51d0cedb29
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user