Skip to content

Commit

Permalink
修改判断条件
Browse files Browse the repository at this point in the history
  • Loading branch information
keepsilence233 committed May 24, 2024
1 parent 11ef681 commit ebb4a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gplus/dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func NewPage[T any](current, size int) *Page[T] {
if current <= 0 {
current = 1
}
if size == 0 {
if size <= 0 {
size = 10
}
return &Page[T]{Current: current, Size: size}
Expand Down

0 comments on commit ebb4a4a

Please sign in to comment.