From 4baeedbdb1a964068c200d0e969d3f32014dd3cb Mon Sep 17 00:00:00 2001 From: vctqs1 Date: Wed, 3 Jul 2024 17:43:39 +0700 Subject: [PATCH] update value --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3ca64df..5fabd3a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -344,7 +344,7 @@ impl<'a> Transpiler<'a> { let key = param.key.as_ref().map_or("", String::as_str); let value = param.value.as_ref().map_or("", String::as_str); - if value.is_empty() || key.is_empty() { + if value.is_empty() { None // Skip this parameter } else { Some(format!("{}={}", key, value))