yegor256/qulice
Auf GitHub ansehenConstants should be on the right side of comparison
Open
#716 geöffnet am 16. Feb. 2016
bughelp wantedpostponed
Repository-Metriken
- Stars
- (320 Stars)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
When comparing variables with constants there are two possible approaches: if (null == variable) or if (variable == null)
Let's enforce the second one, so that constant value (string literal, null or number) is on the right side of comparison.