Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <bcallaway@google.com>
  • Loading branch information
bobcallaway committed Nov 8, 2023
1 parent a04fab8 commit f667719
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/rekor-cli/app/pflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func initializePFlagMap() {
// this validates a valid operator name
operatorFlagValidator := func(val string) error {
o := struct {
Value string `valid:in(and|or)`
Value string `valid:"in(and|or)"`
}{val}
_, err := validator.ValidateStruct(o)
return err
Expand Down Expand Up @@ -117,7 +117,7 @@ func initializePFlagMap() {
},
urlFlag: func() pflag.Value {
// this validates that the string is a valid http/https URL
httpHttpsValidator := func(val string) error {
httpHTTPSValidator := func(val string) error {
if !validator.IsURL(val) {
return fmt.Errorf("'%v' is not a valid url", val)
}
Expand All @@ -126,7 +126,7 @@ func initializePFlagMap() {
}
return nil
}
return valueFactory(urlFlag, httpHttpsValidator, "")
return valueFactory(urlFlag, httpHTTPSValidator, "")
},
fileOrURLFlag: func() pflag.Value {
// applies logic of fileFlag OR urlFlag validators from above
Expand Down Expand Up @@ -362,4 +362,3 @@ func validateFile(v string) error {
}
return nil
}

0 comments on commit f667719

Please sign in to comment.