hack/verify fixes

This commit is contained in:
Pat Christopher
2021-07-28 19:26:44 -07:00
parent 4549573a44
commit f720c4fd44
4 changed files with 22 additions and 6 deletions

View File

@@ -188,7 +188,7 @@ func (c *metricDecoder) decodeOpts(expr ast.Expr) (metric, error) {
return m, newDecodeErrorf(expr, errExprNotIdent, v.X)
}
variableExpr, found := c.variables[strings.Join([]string{s.Name,v.Sel.Name}, ".")]
variableExpr, found := c.variables[strings.Join([]string{s.Name, v.Sel.Name}, ".")]
if !found {
return m, newDecodeErrorf(expr, errBadImportedVariableAttribute)
}