Remove unnecessary error code