The err check should always be done with != and have the error case first, to follow the pattern and avoid mistakes like these.
The err check should always be done with != and have the error case first, to follow the pattern and avoid mistakes like these.