All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
The unit value is always equal to itself. Comparisons against the unit value are probably the result of accidental semicolons.
if { foo(); } == { bar(); } {}
let f = foo(); let b = bar(); if f == b {}