Skip to content

Commit

Permalink
chore: Fixed linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisBurger committed Nov 18, 2024
1 parent 125c168 commit f68cd7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasky/src/models/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ impl GroupRepository {
.order(dsl::verified.desc())
.paginate(page)
.load_and_count_pages::<Group>(conn);
if result.is_err() {
if let Ok(model) = result {
model
} else {
PaginatedModel {
results: vec![],
total: 0,
page,
}
} else {
result.unwrap()
}
}

Expand Down

0 comments on commit f68cd7c

Please sign in to comment.