Skip to content

Commit

Permalink
replace depricated api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
willr3 committed Sep 30, 2024
1 parent 55ce1c4 commit eda473a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/hyperfoil/tools/qdup/JsonServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public void start(){
String cmdUid = rc.request().getParam("sessionId");
Context found = dispatcher.getContext(cmdUid);
if(found != null) {
String body = rc.getBodyAsString();
String body = rc.body().asString();
ParseCmd toRun = new ParseCmd(body);

State state = new State("");
Expand All @@ -314,7 +314,7 @@ public void start(){
String currentOutput = found.getShell().peekOutput();
toRun.run(currentOutput,spyContext);

if(spyContext.getErrors().size()>0){
if(!spyContext.getErrors().isEmpty()){
spyContext.getErrors().forEach(err->response.add("errors",err));
rc.response().end(response.toString());
} else if(spyContext.hasSkip()){
Expand Down

0 comments on commit eda473a

Please sign in to comment.