Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamess-Lucass committed Jan 30, 2024
1 parent 15305f6 commit 65898c8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test-02/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ func (s *Schema) String() *StringSchema {

func (s *StringSchema) Min(min int) *StringSchema {
s.checks = append(s.checks, func(value string) bool {
if len(value) < min {
return false
}
return true
return len(value) >= min
})

return s
Expand Down Expand Up @@ -62,10 +59,7 @@ func (s *Schema) Int() *IntSchema {

func (s *IntSchema) LessThan(min int) *IntSchema {
s.checks = append(s.checks, func(value int) bool {
if value < min {
return true
}
return false
return value < min
})

return s
Expand Down

0 comments on commit 65898c8

Please sign in to comment.