mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
change variable name of getValidOptions
This commit is contained in:
parent
7e935dd90a
commit
e1404cf330
1 changed files with 3 additions and 3 deletions
|
|
@ -502,14 +502,14 @@ func (p *postFrameRequest) UnmarshalJSON(b []byte) error {
|
|||
}
|
||||
|
||||
func getValidOptions(option interface{}) []string {
|
||||
validFrameOptions := []string{}
|
||||
validOptions := []string{}
|
||||
val := reflect.ValueOf(option)
|
||||
for i := 0; i < val.Type().NumField(); i++ {
|
||||
jsonTag := val.Type().Field(i).Tag.Get("json")
|
||||
s := strings.Split(jsonTag, ",")
|
||||
validFrameOptions = append(validFrameOptions, s[0])
|
||||
validOptions = append(validOptions, s[0])
|
||||
}
|
||||
return validFrameOptions
|
||||
return validOptions
|
||||
}
|
||||
|
||||
type postFrameRequest struct {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue