add missing condition for signatures upload failures
Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
parent
00f7745ec4
commit
4e5b87d0cd
1 changed files with 3 additions and 1 deletions
|
@ -380,7 +380,9 @@ pub(crate) async fn upload_signatures_route(
|
|||
}
|
||||
}
|
||||
|
||||
failures.insert(user_id.to_owned(), failure_reasons.clone());
|
||||
if !failure_reasons.is_empty() {
|
||||
failures.insert(user_id.to_owned(), failure_reasons.clone());
|
||||
}
|
||||
}
|
||||
|
||||
Ok(upload_signatures::v3::Response { failures })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue