Remove useless path check.