Skip to content

Commit

Permalink
changed Param fields K and V to upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarmrr committed Jul 7, 2019
1 parent d0de528 commit 54f89a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions model/Base.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ type Base struct {
func ValidateParams(args ...Param) error {
errors := make(map[string]string)
for _, arg := range args {
if (arg.v) == "" {
errors[arg.k] = "Key_Required"
if (arg.V) == "" {
errors[arg.K] = "Key_Required"
}
}

Expand All @@ -33,6 +33,6 @@ func ValidateParams(args ...Param) error {

// Param instances are passed to ValidateParams to check empty values
type Param struct {
k string
v string
K string
V string
}

0 comments on commit 54f89a6

Please sign in to comment.