removed an unnecessary if()

Nothing too important, but I think it makes the code cleaner :-)
Merge pull request #90 from znib/patch-1

removed an unnecessary if()