We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85363a3 commit e48c5a5Copy full SHA for e48c5a5
1 file changed
JShellAPI/src/main/java/org/togetherjava/jshellapi/rest/JShellController.java
@@ -20,7 +20,6 @@ public class JShellController {
20
@PostMapping("/eval/{id}")
21
public JShellResult eval(@PathVariable String id, @RequestBody String code) throws DockerException {
22
validateId(id);
23
- if(code == null) throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "Code is null");
24
return service.session(id).eval(code).orElseThrow(() -> new ResponseStatusException(HttpStatus.CONFLICT, "An operation is already running"));
25
}
26
@PostMapping("/eval")
0 commit comments