Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
maggie98choy committed Aug 13, 2024
1 parent 8e767e3 commit fbec931
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/main/src/broker/endpoint_broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -762,22 +762,18 @@ fn apply_response(
) {
Ok(r) => {
if r.to_string().to_lowercase().contains("null") {
println!("^^^ apply resp 1");
v.data.result = Some(Value::Null);
v.data.error = None;
} else if r.to_string().to_lowercase().contains("error") {
println!("^^^ apply resp 2");
v.data.error = Some(r);
v.data.result = None;
} else {
println!("^^^ apply resp 3");
v.data.result = Some(r);
v.data.error = None;
}
trace!("mutated output {:?}", v);
}
Err(e) => {
println!("^^^ apply resp 4");
v.data.error = Some(json!(e.to_string()));
error!("jq_compile error {:?}", e);
}
Expand Down

0 comments on commit fbec931

Please sign in to comment.