Replace Where-Object with .where Method (#2212)

* initialize Windev branch

* Formatting

* more Formatting

* fix applications

* init

* remove timer

* Compile Winutil

* revert winutil.ps1

* revert winutil.ps1

* update Get Winutilvariables to use .where method

---------

Co-authored-by: Marterich <Marterich@users.noreply.github.com>
This commit is contained in:
Martin Wiethan
2024-06-29 00:02:32 +02:00
committed by GitHub
parent 0c32d016b4
commit ab384029f1
3 changed files with 6 additions and 9 deletions

View File

@ -11,9 +11,7 @@ function Get-WinUtilVariables {
[Parameter()]
[string[]]$Type
)
$keys = $sync.keys | Where-Object { $_ -like "WPF*" }
$keys = ($sync.keys).where{ $_ -like "WPF*" }
if ($Type) {
$output = $keys | ForEach-Object {
Try {