Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
remove panic for min > max
Browse files Browse the repository at this point in the history
  • Loading branch information
yuce committed May 23, 2019
1 parent 8a7ff45 commit 24d5413
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -770,9 +770,6 @@ func OptFieldTypeInt(limits ...int64) FieldOption {
if len(limits) > 1 {
max = limits[1]
}
if min > max {
panic("error: min cannot be greater than max")
}

return func(options *FieldOptions) {
options.fieldType = FieldTypeInt
Expand Down

0 comments on commit 24d5413

Please sign in to comment.