Remove superfluous error checking