We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adb5089 commit 4f26261Copy full SHA for 4f26261
RuleDocumentation/PossibleIncorrectComparisonWithNull.md
@@ -42,6 +42,6 @@ function Test-CompareWithNull
42
43
``` PowerShell
44
# 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' }
+if (@() -eq $null) { 'true' } else { 'false' }
46
if (@() -ne $null) { 'true' }else { 'false' }
47
```
0 commit comments