Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
fix(custom.go) renames variable to match go style
Browse files Browse the repository at this point in the history
  • Loading branch information
erickfaustino committed Oct 13, 2020
1 parent ea1798a commit addb99e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var (
)

func neq(args ...interface{}) livr.Validation {
not_allowed := utils.FirstArg(args...)
notAllowed := utils.FirstArg(args...)

return func(value interface{}, builders ...interface{}) (interface{}, interface{}) {
if value == nil || value == "" {
Expand All @@ -27,7 +27,7 @@ func neq(args ...interface{}) livr.Validation {
default:
return nil, errors.New("FORMAT_ERROR")
}
if fmt.Sprint(value) == fmt.Sprint(not_allowed) {
if fmt.Sprint(value) == fmt.Sprint(notAllowed) {
return nil, errors.New("NOT_ALLOWED_VALUE")
}

Expand Down

0 comments on commit addb99e

Please sign in to comment.