If unconfigured, let get_all_self_addrs() return vec![], not vec![""];

This commit is contained in:
Hocuri
2022-04-19 17:17:14 +02:00
committed by holger krekel
parent 5ee2f3696d
commit bc809986e7
3 changed files with 3 additions and 4 deletions

View File

@@ -844,9 +844,6 @@ 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> {
if count == 0 {
bail!("Must have at least one repeat variable");
}
let mut s = "?,".repeat(count);
s.pop(); // Remove trailing comma
Ok(s)