From e1404cf330881d89286c42cc578e3dfba0c24a49 Mon Sep 17 00:00:00 2001 From: Linh Vo Date: Fri, 21 Apr 2017 11:42:31 -0500 Subject: [PATCH] change variable name of getValidOptions --- handler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handler.go b/handler.go index adb3967e1..5af464764 100644 --- a/handler.go +++ b/handler.go @@ -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 {