Removed an unnecessary if-statement.

Not sure if it had any purpose. Maybe to make it more clear?

Just a suggestion of something I noticed.
Merge pull request #1312 from DaanHaaz/patch-1

Removed an unnecessary if-statement.