Commit f2ca2533 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Replace magic number by HttpStatus"

Closes gh-15130
parent ffdc9f0f
......@@ -39,8 +39,9 @@ class TraceableServerHttpResponse implements TraceableResponse {
@Override
public int getStatus() {
return (this.response.getStatusCode() != null)
? this.response.getStatusCode().value() : HttpStatus.OK.value();
HttpStatus status = (this.response.getStatusCode() != null)
? this.response.getStatusCode() : HttpStatus.OK;
return status.value();
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment