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

Commit addb99e

Browse files
committed
fix(custom.go) renames variable to match go style
1 parent ea1798a commit addb99e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var (
1515
)
1616

1717
func neq(args ...interface{}) livr.Validation {
18-
not_allowed := utils.FirstArg(args...)
18+
notAllowed := utils.FirstArg(args...)
1919

2020
return func(value interface{}, builders ...interface{}) (interface{}, interface{}) {
2121
if value == nil || value == "" {
@@ -27,7 +27,7 @@ func neq(args ...interface{}) livr.Validation {
2727
default:
2828
return nil, errors.New("FORMAT_ERROR")
2929
}
30-
if fmt.Sprint(value) == fmt.Sprint(not_allowed) {
30+
if fmt.Sprint(value) == fmt.Sprint(notAllowed) {
3131
return nil, errors.New("NOT_ALLOWED_VALUE")
3232
}
3333

0 commit comments

Comments
 (0)