Remove the last redundant error check