Skip to content

Commit

Permalink
trivial. bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ktkfree committed Apr 9, 2024
1 parent 710ce08 commit 9a49612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pagination/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func NewPagination(urlParams *url.Values) *Pagination {
pg.Page, _ = strconv.Atoi(value[0])
}
case PAGE_SIZE:
if value[0] == "" {
if value[0] != "" {
if limitNum, err := strconv.Atoi(value[0]); err == nil {
pg.Limit = limitNum
}
Expand Down

0 comments on commit 9a49612

Please sign in to comment.