mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-27 16:44:46 -05:00
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user