pinakes-server: fix subtitle list response and registration

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I22c7237877862acbf931ce4c662bd2816a6a6964
This commit is contained in:
raf 2026-03-21 13:33:29 +03:00
commit b1ddb32ff0
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 9 additions and 7 deletions

View file

@ -59,11 +59,11 @@ async fn notes_graph_empty() {
let nodes_empty = obj
.get("nodes")
.and_then(|v| v.as_array())
.map_or(true, |a| a.is_empty());
.is_none_or(std::vec::Vec::is_empty);
let edges_empty = obj
.get("edges")
.and_then(|v| v.as_array())
.map_or(true, |a| a.is_empty());
.is_none_or(std::vec::Vec::is_empty);
assert!(
nodes_empty && edges_empty,
"graph should be empty, got {obj:?}"