Skip to content

Commit

Permalink
update value
Browse files Browse the repository at this point in the history
  • Loading branch information
vctqs1 committed Jul 3, 2024
1 parent a0d34b0 commit 4baeedb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4baeedb

Please sign in to comment.