From fac9d9e5b1fbedebe57dee0d3b42c4da094d4785 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Tue, 9 May 2017 18:03:07 -0700 Subject: Address comment - simplify code --- .../ext/filters/workarounds/workaround_cronet_compression_filter.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/core/ext/filters/workarounds') diff --git a/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c b/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c index 41a91204b2..af30d21141 100644 --- a/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c +++ b/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); -- cgit v1.2.3