mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Don't let repeat_vars() return unnecessary Result
This commit is contained in:
@@ -843,10 +843,10 @@ async fn prune_tombstones(sql: &Sql) -> Result<()> {
|
||||
///
|
||||
/// Use this together with [`rusqlite::ParamsFromIter`] to use dynamically generated
|
||||
/// parameter lists.
|
||||
pub fn repeat_vars(count: usize) -> Result<String> {
|
||||
pub fn repeat_vars(count: usize) -> String {
|
||||
let mut s = "?,".repeat(count);
|
||||
s.pop(); // Remove trailing comma
|
||||
Ok(s)
|
||||
s
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user