Suppress PossibleIncorrectUsageOfAssignmentOperator rule violation by adding extra parenthesis (#9460)

This commit is contained in:
xtqqczze 2019-07-02 21:23:58 +01:00 committed by Aditya Patwardhan
parent 2285ece613
commit 0d55a7249b

View file

@ -550,7 +550,7 @@ Describe "Verify approved aliases list" -Tags "CI" {
Select-Object -Property Name, @{
Name = 'ConfirmImpact'
Expression = {
if ($t = $_.ImplementingType) {
if (($t = $_.ImplementingType)) {
$t.GetCustomAttributes($true).Where{$_.TypeId.Name -eq 'CmdletAttribute'}.ConfirmImpact
}
}