Skip to content

Commit

Permalink
update: Remove self-testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
eaglerayp committed Feb 23, 2017
1 parent d34510c commit b873cea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -2776,8 +2776,7 @@ func (q *Query) Limit(n int) *Query {
switch {
case n == 1:
q.limit = 1
// Modify by Ray
q.op.limit = 1
q.op.limit = -1
case n == math.MinInt32: // -MinInt32 == -MinInt32
q.limit = math.MaxInt32
q.op.limit = math.MinInt32 + 1
Expand Down

0 comments on commit b873cea

Please sign in to comment.