From: Sebastian Pipping Date: Wed, 3 Jul 2019 20:50:44 +0000 (+0200) Subject: coverage.sh: Simplify if statement X-Git-Tag: R_2_2_8~85^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7c4f16f9ec2eca482c9e4aaa41e7a4e87f57f4f;p=libexpat coverage.sh: Simplify if statement Conistent with unicode_enabled check above --- diff --git a/expat/coverage.sh b/expat/coverage.sh index 413782b0..68f2dc74 100755 --- a/expat/coverage.sh +++ b/expat/coverage.sh @@ -41,9 +41,8 @@ _configure() { ${unicode_enabled} \ && configure_args+=( CPPFLAGS='-DXML_UNICODE -DXML_UNICODE_WCHAR_T' ) - if [[ "${xml_attr_info_enabled}" = true ]]; then - configure_args+=( --enable-xml-attr-info ) - fi + ${xml_attr_info_enabled} \ + && configure_args+=( --enable-xml-attr-info ) if [[ ${xml_context} -eq 0 ]]; then configure_args+=( --disable-xml-context )