Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
inoas committed May 29, 2024
1 parent 28220f3 commit ac57371
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cake/internal/prepared_statement.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ pub fn append_param(
pub fn append_sql_and_param(
prepared_statement prp_stm: PreparedStatement,
new_sql nw_sql: String,
new_param nw_prms: Param,
new_param nw_prm: Param,
) {
PreparedStatement(
..prp_stm,
sql: prp_stm.sql <> nw_sql,
params: list.append(prp_stm.params, [nw_prms]),
params: prp_stm.params |> list.append([nw_prm]),
index: prp_stm.index + 1,
)
}
Expand All @@ -54,7 +54,7 @@ pub fn append_sql_and_params(
PreparedStatement(
..prp_stm,
sql: prp_stm.sql <> nw_sql,
params: list.append(prp_stm.params, nw_prms),
params: prp_stm.params |> list.append(nw_prms),
index: prp_stm.index + list.length(nw_prms),
)
}
Expand Down

0 comments on commit ac57371

Please sign in to comment.