Fix variable name typo

Signed-off-by: Jiri Pinkava <jiri.pinkava@rossum.ai>
This commit is contained in:
Jiri Pinkava
2019-10-24 09:41:59 +02:00
parent a72380125f
commit 7497a61a2c

View File

@@ -28,12 +28,12 @@ func NewJSONPathMetricsGetter(config map[string]string) (*JSONPathMetricsGetter,
getter := &JSONPathMetricsGetter{}
if v, ok := config["json-key"]; ok {
pat, err := jsonpath.Compile(v)
path, err := jsonpath.Compile(v)
if err != nil {
return nil, fmt.Errorf("failed to parse json path definition: %v", err)
}
getter.jsonPath = pat
getter.jsonPath = path
}
if v, ok := config["scheme"]; ok {