From c8c7770e36428fcf61c6e4dcf1b3ffded2d0cf48 Mon Sep 17 00:00:00 2001 From: silverqx Date: Sun, 9 Jun 2024 23:47:26 +0200 Subject: [PATCH] tools pwsh removed useless $($( --- tools/Add-FolderOnPath.ps1 | 2 +- tools/Find-Todos.ps1 | 2 +- tools/Invoke-Tests.ps1 | 2 +- tools/Lint-TinyORM.ps1 | 2 +- tools/deploy.ps1 | 2 +- tools/std.ps1 | 2 +- tools/str.ps1 | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/Add-FolderOnPath.ps1 b/tools/Add-FolderOnPath.ps1 index 3df9fc232..73cf96ab3 100644 --- a/tools/Add-FolderOnPath.ps1 +++ b/tools/Add-FolderOnPath.ps1 @@ -5,7 +5,7 @@ Param( [Parameter(Position = 0, ValueFromPipeline, ValueFromPipelinebyPropertyName, HelpMessage = 'Specifies the folder to add on the system path, is pwd by default.')] [ValidateNotNullOrEmpty()] - [string[]] $Path = $($(Get-Location).Path), + [string[]] $Path = (Get-Location).Path, [Parameter(Position = 1, ValueFromPipelinebyPropertyName, HelpMessage = 'Specifies the environment variable to which to add a Path, is env:PATH ' + diff --git a/tools/Find-Todos.ps1 b/tools/Find-Todos.ps1 index cc88d148c..c99b3fe20 100644 --- a/tools/Find-Todos.ps1 +++ b/tools/Find-Todos.ps1 @@ -10,7 +10,7 @@ Param( [Parameter(Position = 1, HelpMessage = 'Specifies the path to the project folder, is pwd by default.')] [ValidateNotNullOrEmpty()] - [string] $Path = $($(Get-Location).Path) + '\*', + [string] $Path = (Get-Location).Path + '\*', [Parameter(Position = 2, HelpMessage = 'Specifies an array of one or more string patterns to be matched as the ' + diff --git a/tools/Invoke-Tests.ps1 b/tools/Invoke-Tests.ps1 index 3ad1a6d76..01d7260cc 100644 --- a/tools/Invoke-Tests.ps1 +++ b/tools/Invoke-Tests.ps1 @@ -9,7 +9,7 @@ Param( [Parameter(Position = 1, HelpMessage = 'Specifies the path to the qmake build folder, is pwd by default.')] [ValidateNotNullOrEmpty()] - [string] $BuildPath = $($(Get-Location).Path) + [string] $BuildPath = (Get-Location).Path ) Set-StrictMode -Version 3.0 diff --git a/tools/Lint-TinyORM.ps1 b/tools/Lint-TinyORM.ps1 index 3e8a31f62..34b881358 100644 --- a/tools/Lint-TinyORM.ps1 +++ b/tools/Lint-TinyORM.ps1 @@ -9,7 +9,7 @@ Param( [Parameter( HelpMessage = 'Specifies the path to the CMake build folder, is pwd by default.')] [ValidateNotNullOrEmpty()] - [string] $BuildPath = $($(Get-Location).Path), + [string] $BuildPath = (Get-Location).Path, [Parameter(HelpMessage = 'Specifies the cpp files to be processed, is joined with ' + 'the | character and used in the parenthesized regex eg. (file1|file2).')] diff --git a/tools/deploy.ps1 b/tools/deploy.ps1 index d0102a925..5c2ecd389 100644 --- a/tools/deploy.ps1 +++ b/tools/deploy.ps1 @@ -989,7 +989,7 @@ function Show-DiffSummaryAndApprove { [Parameter( HelpMessage = 'Specifies the folder for which to show git diff, is pwd by default.')] [ValidateNotNullOrEmpty()] - [string[]] $Path = $($(Get-Location).Path) + [string[]] $Path = (Get-Location).Path ) Write-Progress 'Showing diff summary...' diff --git a/tools/std.ps1 b/tools/std.ps1 index c0cde3bc1..102cf4c53 100644 --- a/tools/std.ps1 +++ b/tools/std.ps1 @@ -4,7 +4,7 @@ Param( [Parameter(Position = 0, ValueFromPipeline, ValueFromPipelinebyPropertyName, HelpMessage = 'Specifies the TinyORM debug build folder to add.')] [ValidateNotNullOrEmpty()] - [string[]] $BuildPath = $($(Get-Location).Path) + [string[]] $BuildPath = (Get-Location).Path ) Set-StrictMode -Version 3.0 diff --git a/tools/str.ps1 b/tools/str.ps1 index da210a7fe..751d028bf 100644 --- a/tools/str.ps1 +++ b/tools/str.ps1 @@ -4,7 +4,7 @@ Param( [Parameter(Position = 0, ValueFromPipeline, ValueFromPipelinebyPropertyName, HelpMessage = 'Specifies the TinyORM release build folder to add.')] [ValidateNotNullOrEmpty()] - [string[]] $BuildPath = $($(Get-Location).Path) + [string[]] $BuildPath = (Get-Location).Path ) Set-StrictMode -Version 3.0