Fix lint errors
We don't need to pass the error through the guard

The error is contained within the shared resource object. Err.