Polish "Replace magic number by HttpStatus"
Closes gh-15130
This commit is contained in:
parent
ffdc9f0ff3
commit
f2ca2533d5
@ -39,8 +39,9 @@ class TraceableServerHttpResponse implements TraceableResponse {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getStatus() {
|
public int getStatus() {
|
||||||
return (this.response.getStatusCode() != null)
|
HttpStatus status = (this.response.getStatusCode() != null)
|
||||||
? this.response.getStatusCode().value() : HttpStatus.OK.value();
|
? this.response.getStatusCode() : HttpStatus.OK;
|
||||||
|
return status.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user