Clippy clean.
@@ -115,14 +115,9 @@ impl Registry {
description,
..
} => {
- if name == &self.query_type {
- if federation && fields.len() <= 4 {
+ if name == &self.query_type && federation && fields.len() <= 4 {
// Is empty query root, only __schema, __type, _service, _entities fields
return;
- } else if !federation && fields.len() <= 2 {
- // Is empty query root, only __schema, __type
- return;
- }
}
if let Some(subscription_type) = &self.subscription_type {
