Skip to content

Commit

Permalink
style: run ./lint.sh --mode=fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ologbonowiwi committed Jan 29, 2024
1 parent 7dc62fd commit 5614a4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/blueprint/operators/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ impl TryFrom<Expression> for Grpc {
fn get_type_and_field(call: &config::Call) -> Option<(String, String)> {
if let Some(query) = &call.query {
Some(("Query".to_string(), query.clone()))
} else { call.mutation.as_ref().map(|mutation| ("Mutation".to_string(), mutation.clone())) }
} else {
call.mutation
.as_ref()
.map(|mutation| ("Mutation".to_string(), mutation.clone()))
}
}

pub fn compile_call(
Expand Down

0 comments on commit 5614a4d

Please sign in to comment.