Skip to content

Commit 4f26261

Browse files
bergmeisterrjmholt
andauthored
Update RuleDocumentation/PossibleIncorrectComparisonWithNull.md
Co-Authored-By: Robert Holt <[email protected]>
1 parent adb5089 commit 4f26261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RuleDocumentation/PossibleIncorrectComparisonWithNull.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ function Test-CompareWithNull
4242

4343
``` PowerShell
4444
# Both expressions below return 'false' because the comparison does not return an object and therefore the if statement always falls through:
45-
if (@() -eq $null) { 'true' }else { 'false' }
45+
if (@() -eq $null) { 'true' } else { 'false' }
4646
if (@() -ne $null) { 'true' }else { 'false' }
4747
```

0 commit comments

Comments
 (0)