Skip to content

Commit

Permalink
- simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
laststylebender14 committed Dec 9, 2024
1 parent 1310419 commit e233d58
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/blueprint/operators/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ pub fn compile_http(
let on_response_body = http.on_response_body.clone();
let hook = WorkerHooks::try_new(on_request, on_response_body).ok();

let group_by_clause = !http.batch_key.is_empty()
&& (http.method == Method::GET || http.method == Method::POST);
let io = if group_by_clause {
let io = if !http.batch_key.is_empty() {
// Find a query parameter that contains a reference to the {{.value}} key
let key = if http.method == Method::GET {
http.query.iter().find_map(|q| {
Expand Down

0 comments on commit e233d58

Please sign in to comment.