We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f68c10b commit ef106e0Copy full SHA for ef106e0
1 file changed
core/src/main/java/io/grpc/transport/Http2ClientStream.java
@@ -167,10 +167,8 @@ private static Status statusFromHttpStatus(Metadata metadata) {
167
Integer httpStatus = metadata.get(HTTP2_STATUS);
168
if (httpStatus != null) {
169
Status status = HttpUtil.httpStatusToGrpcStatus(httpStatus);
170
- if (!status.isOk()) {
171
- status.augmentDescription("extracted status from HTTP :status " + httpStatus);
172
- }
173
- return status;
+ return status.isOk() ? status
+ : status.augmentDescription("extracted status from HTTP :status " + httpStatus);
174
}
175
return null;
176
0 commit comments