Remove superfluous if statement when checking return code.