Removed noisy debug log and useless if condition.