Remove unused variable

Errors are not returned from this function so don't bother collecting them.