Remove error callback check

The error callback is not required