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: Propagate @discardableResult to implementations #719

Merged
merged 3 commits into from
Aug 17, 2020

Conversation

palpatim
Copy link
Member

@palpatim palpatim commented Aug 17, 2020

refs:#713

When this is released, merge aws-amplify/docs#2246

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@palpatim palpatim added this to the 1.1.1 milestone Aug 17, 2020
@palpatim palpatim merged commit 83bd335 into main Aug 17, 2020
@palpatim palpatim deleted the palpatim/fix-discardable-results branch August 17, 2020 22:00
@sebsto
Copy link

sebsto commented Aug 19, 2020

Amplify.Auth.listen was left over, see #713

@palpatim
Copy link
Member Author

As noted, that's intentional--only APIs that return AmplifyOperations are discardable. I'll clarify that in the docs by removing the ignored assigment in the _ = Amplify.Auth.listen(...) example.

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

Successfully merging this pull request may close these issues.

4 participants