summaryrefslogtreecommitdiffstats
path: root/generator/src
diff options
context:
space:
mode:
authoraviac <aviac@mailbox.org>2024-01-24 21:43:03 +0100
committeraviac <aviac@mailbox.org>2024-01-24 21:43:03 +0100
commit5cabd12eb6a4fa5722f117a8369b09c3f11285bd (patch)
tree558897261e07541b31cc1cb7f619d507cbf0ff63 /generator/src
parentfix(list): adjust broken generated code (diff)
downloadforgejo-api-5cabd12eb6a4fa5722f117a8369b09c3f11285bd.tar.xz
forgejo-api-5cabd12eb6a4fa5722f117a8369b09c3f11285bd.zip
fix(mistake): order of statements
Authored-by: Aviac <aviac@mailbox.org>
Diffstat (limited to 'generator/src')
-rw-r--r--generator/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/src/main.rs b/generator/src/main.rs
index 27fa5fb..97073ae 100644
--- a/generator/src/main.rs
+++ b/generator/src/main.rs
@@ -1079,8 +1079,8 @@ fn simple_query_array(
&mut out,
"
if !{name}.is_empty() {{
+ write!(f, \"{}=\")?;
for (item, i) in {name}.iter().enumerate() {{
- write!(f, \"{}=\")?;
{item_pusher}
if i < {name}.len() - 1 {{
write!(f, '{sep}')?;