From e22f89853fc85a200fd7cb4c467089f553427f27 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 18 Nov 2019 23:42:51 -0700 Subject: [PATCH] Consider `CI_TAG=` to be the same as `unset CI_TAG` --- clap-utils/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clap-utils/src/lib.rs b/clap-utils/src/lib.rs index 22702d646f..71addb6dbb 100644 --- a/clap-utils/src/lib.rs +++ b/clap-utils/src/lib.rs @@ -4,7 +4,7 @@ macro_rules! version { &*format!( "{}{}", env!("CARGO_PKG_VERSION"), - if option_env!("CI_TAG").is_none() { + if option_env!("CI_TAG").unwrap_or("").is_empty() { format!( " [channel={} commit={}]", option_env!("CHANNEL").unwrap_or("unknown"),