remove unnecessary if
Merge pull request #170 from ginriki/remove-redundancy

remove unnecessary if