TackMobile / Denver-Rail-iOS

MIT licensed iOS app for the Denver RTD light rail system.
MIT License
5 stars 1 forks source link

This is not the proper way to initialize an NSError #10

Closed naomihimley closed 8 years ago

naomihimley commented 8 years ago

and it is not being checked anywhere anyways. The correct pattern would be to pass in an NSError set to nil, and check if either the setCategory:error: method returns YES or NO, or check if the error exists after the method call. Since we are checking neither of those things, updated to just pass nil for the error param.