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
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user