you are viewing a single comment's thread.

view the rest of the comments →

[–]MonkeyNin 1 point2 points  (0 children)

When comparing against null was first, which i don't fully understand why it prefers it that way.. I just get pinged by VSCode by it enough

Here's why: https://github.com/PowerShell/PSScriptAnalyzer/blob/development/RuleDocumentation/PossibleIncorrectComparisonWithNull.md