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

Remove redundant nil check in InMemoryNormalizedCache's clear() #1508

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

gsbernstein
Copy link
Contributor

returnResultAsyncIfNeeded already checks for nil. In all the other methods in this class, we rely on that check instead of doing it ourselves beforehand, so this is also more consistent.

`returnResultAsyncIfNeeded` already checks for `nil`. In all the other methods in this class, we rely on that check instead of doing it ourselves beforehand, so this is also more consistent.
@apollo-cla
Copy link

@gsbernstein: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@designatednerd
Copy link
Contributor

Good catch!

@designatednerd designatednerd merged commit d734e66 into apollographql:main Nov 10, 2020
@designatednerd designatednerd added this to the Next Release milestone Nov 10, 2020
@gsbernstein gsbernstein deleted the patch-1 branch November 11, 2020 02:35
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.

3 participants