Skip to content

Commit

Permalink
Fix possible empty quote
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Aug 14, 2024
1 parent 834e451 commit d0a9410
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
dist/
.prettier-cache
/book/book
/leptos-fluent-macros/wip/
11 changes: 9 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions leptos-fluent-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ pub fn leptos_fluent(
};

match quote.is_empty() {
true => quote! {},
true => quote! { false },
false => match param.exprpath {
Some(ref path) => quote! { #path{#quote} },
None => quote,
Expand Down Expand Up @@ -818,7 +818,7 @@ pub fn leptos_fluent(
};

match quote.is_empty() {
true => quote! {},
true => quote! { false },
false => match param.exprpath {
Some(ref path) => quote! { #path{#quote} },
None => quote,
Expand Down

0 comments on commit d0a9410

Please sign in to comment.