From e9f47fa0e22a70167d8b1df83d541a01e02cf201 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Tue, 24 Oct 2017 15:52:40 -0400 Subject: [PATCH] Typo Signed-off-by: Yuri Shkuro --- cmd/query/app/static_handler.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/query/app/static_handler.go b/cmd/query/app/static_handler.go index 5db692c2d74..7dc7afb02d8 100644 --- a/cmd/query/app/static_handler.go +++ b/cmd/query/app/static_handler.go @@ -79,18 +79,18 @@ func loadUIConfig(uiConfig string) (map[string]interface{}, error) { } var c map[string]interface{} - var unmarshall func([]byte, interface{}) error + var unmarshal func([]byte, interface{}) error switch strings.ToLower(ext) { case ".yaml", ".yml": - unmarshall = yaml.Unmarshal + unmarshal = yaml.Unmarshal case ".json": - unmarshall = json.Unmarshal + unmarshal = json.Unmarshal default: return nil, fmt.Errorf("Unrecognized UI config file format %v", uiConfig) } - if err := unmarshall(bytes, &c); err != nil { + if err := unmarshal(bytes, &c); err != nil { return nil, errors.Wrapf(err, "Cannot parse UI config file %v", uiConfig) } return c, nil