Don't let repeat_vars() return unnecessary Result

This commit is contained in:
Hocuri
2022-04-22 15:52:53 +02:00
committed by holger krekel
parent a4f5d2b9b2
commit 2b233fd810
8 changed files with 14 additions and 14 deletions

View File

@@ -1296,7 +1296,7 @@ pub async fn markseen_msgs(context: &Context, msg_ids: Vec<MsgId>) -> Result<()>
c.blocked AS blocked
FROM msgs m LEFT JOIN chats c ON c.id=m.chat_id
WHERE m.id IN ({}) AND m.chat_id>9",
sql::repeat_vars(msg_ids.len())?
sql::repeat_vars(msg_ids.len())
),
rusqlite::params_from_iter(&msg_ids),
|row| {