Address comment - simplify code

pull/10849/head
Muxi Yan 8 years ago
parent e74b9aeaa2
commit fac9d9e5b1
  1. 7
      src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c

@ -208,12 +208,7 @@ static bool register_workaround_cronet_compression(
if (a == NULL) {
return true;
}
if (a->type != GRPC_ARG_INTEGER) {
gpr_log(GPR_ERROR, "%s ignored: it must be an integer",
GRPC_ARG_WORKAROUND_CRONET_COMPRESSION);
return true;
}
if (a->value.integer == 0) {
if (grpc_channel_arg_get_bool(a, false) == false) {
return true;
}
grpc_enable_workaround(GRPC_WORKAROUND_ID_CRONET_COMPRESSION);

Loading…
Cancel
Save