Skip to content

Commit

Permalink
refactor(call): remove useless format
Browse files Browse the repository at this point in the history
  • Loading branch information
ologbonowiwi committed Jan 3, 2024
1 parent 000af1c commit b0d82b0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/blueprint/from_config/operators/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ pub fn update_call(

Valid::from_option(call.query.clone(), "call must have query".to_string())
.and_then(|field_name| {
Valid::from_option(
config.find_type("Query"),
format!("Query type not found on config"),
)
.zip(Valid::succeed(field_name))
Valid::from_option(config.find_type("Query"), "Query type not found on config".to_string())
.zip(Valid::succeed(field_name))
})
.and_then(|(query_type, field_name)| {
Valid::from_option(
Expand Down

0 comments on commit b0d82b0

Please sign in to comment.