Removed useless clause
(cherry picked from commit 6c919d4)