Remove unnecessary error checks.