Skip to content

Commit 53672d0

Browse files
committed
fix PSScriptAnalyzer(PSPossibleIncorrectComparisonWithNull)
$null should be on the left side of equality comparisons.
1 parent 47b5cea commit 53672d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Write-Host "--- Patroni packages installed ---`n" -ForegroundColor green
1616

1717
$userName = "pes"
1818
$out = Get-LocalUser -Name $userName -ErrorAction SilentlyContinue
19-
if($out -eq $null)
19+
if($null -eq $out)
2020
{
2121
Write-Host "--- Adding local user '$userName' for patroni service ---" -ForegroundColor blue
2222
$Password = -join ((65..90) + (97..122) | Get-Random -Count 8 | % {[char]$_})

0 commit comments

Comments
 (0)