From 477a7af2bc4561dac536880f70fc3e2f06518493 Mon Sep 17 00:00:00 2001 From: Avery Harnish Date: Tue, 25 May 2021 11:53:12 -0500 Subject: [PATCH] chore: fix null implementing services --- crates/rover-client/src/query/config/is_federated.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/crates/rover-client/src/query/config/is_federated.rs b/crates/rover-client/src/query/config/is_federated.rs index 34752f6b7..b8fb68fa6 100644 --- a/crates/rover-client/src/query/config/is_federated.rs +++ b/crates/rover-client/src/query/config/is_federated.rs @@ -33,13 +33,11 @@ fn build_response( graph: String, ) -> Result { let service = data.service.ok_or(RoverClientError::NoService { graph })?; - match service.implementing_services { - Some(typename) => Ok(match typename { + Ok(match service.implementing_services { + Some(typename) => match typename { ImplementingServices::FederatedImplementingServices => true, ImplementingServices::NonFederatedImplementingService => false, - }), - None => Err(RoverClientError::MalformedResponse { - null_field: "implementing_services".to_string(), - }), - } + }, + None => false, + }) }