Skip to content

Commit

Permalink
ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Nov 10, 2023
1 parent d8aa778 commit 568daa7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ func postRanks(ev *nostr.Event) {
}
items = append(items, item)
}
if len(items) < 5 {
return
}
sort.Slice(items, func(i, j int) bool {
return items[i].Count > items[j].Count
})
Expand Down

0 comments on commit 568daa7

Please sign in to comment.