remove a check that is always false
Merge pull request #5566 from chinhodado/patch-5

remove a check that is always false