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

extendSchema: remove dead check on number of directives #2309

Merged
merged 1 commit into from
Dec 27, 2019

Conversation

IvanGoncharov
Copy link
Member

directives are always array but it can be empty:

_directives: $ReadOnlyArray<GraphQLDirective>;

So ATM this statement doesn't check anything.

@IvanGoncharov IvanGoncharov added the PR: polish 💅 PR doesn't change public API or any observed behaviour label Dec 26, 2019
@IvanGoncharov IvanGoncharov merged commit 94b7e72 into graphql:master Dec 27, 2019
@IvanGoncharov IvanGoncharov deleted the pr_branch branch December 27, 2019 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: polish 💅 PR doesn't change public API or any observed behaviour
1 participant