Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nil-returns from methods with nonnull return type #106

Merged

Conversation

rastersize
Copy link
Contributor

Caught by running the analyzer bundled with Xcode 7.3 beta 3. Most of the problems were due to the early-return segment of the init methods:
early return nil analyzer warning

Also fixed a the type of some methods that should return nil as well as updated the documentation for those.

@spotify/objc-dev

@8W9aG
Copy link
Contributor

8W9aG commented Feb 22, 2016

👍

@ChocoChipset
Copy link
Contributor

I personally support this change, but... shouldn't we update our Obj-c guidelines first to be consistent?

@rastersize
Copy link
Contributor Author

@iOSCowboy: We can hold off merging until we’ve officially updated them 😺

Just bothered me that I couldn’t build the project without getting all these warnings 😝

@ChocoChipset
Copy link
Contributor

@rastersize: Totally. It's like walking with a pebble in your shoe.

@rastersize
Copy link
Contributor Author

Style in our guidelines has been updated, spotify/ios-style#5. Merging this change.

rastersize added a commit that referenced this pull request Feb 25, 2016
…ethods-returning-nil

Fix nil-returns from methods with nonnull return type
@rastersize rastersize merged commit 99a34a7 into master Feb 25, 2016
@rastersize rastersize deleted the nullability/fix-nonnull-return-methods-returning-nil branch February 25, 2016 18:22
@ChocoChipset
Copy link
Contributor

You never lifted the finger from the trigger for this one @rastersize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants