Skip to content

Commit

Permalink
fixed build for go test
Browse files Browse the repository at this point in the history
  • Loading branch information
joreiche committed Jun 21, 2024
1 parent c9dd546 commit 01eec4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/risks/script/expressions/value-expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ func (what *ValueExpression) resolveMethodCall(scope *common.Scope, reString str

match := re.FindStringSubmatch(value.StringValue())
if len(match) != 3 {
return common.NilValue(), what.Literal(), fmt.Errorf("method call match failed for %q", value)
return common.NilValue(), what.Literal(), fmt.Errorf("method call match failed for %q", value.StringValue())
}

name := strings.ToLower(match[1])
Expand Down

0 comments on commit 01eec4d

Please sign in to comment.