Unless I'm missing something, if($var == 1) is logically equivalent to if($var) and I think the latter style is more readable and more commonly used in the wider community.

CommentFileSizeAuthor
#1 1883902-reduce-if-verbosity-1.patch1015 bytesthedavidmeister

Comments

thedavidmeister’s picture

Status: Active » Needs review
StatusFileSize
new1015 bytes

patch

kevinquillen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.