Remove needless check
Merge pull request #4602 from danizord/hotfix/remove-check

Remove needless check
Merge branch 'hotfix/4602'

Close #4602