Improve backend code quality
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-11-03 19:08:46 +01:00
parent 75ffa69afd
commit 4cd448208b
6 changed files with 34 additions and 57 deletions

View File

@@ -64,10 +64,10 @@ pub async fn get_list_of_account(
});
}
if let Some(limit) = query.limit {
if list.len() > limit {
list = list[..limit].to_vec();
}
if let Some(limit) = query.limit
&& list.len() > limit
{
list = list[..limit].to_vec();
}
Ok(HttpResponse::Ok().json(list))