From eafffe7c947fb03e6899bbf1698d7faf4cbf08da Mon Sep 17 00:00:00 2001 From: bui Date: Tue, 24 Oct 2023 18:16:39 +0200 Subject: [PATCH] up --- pkg/types/event.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/types/event.go b/pkg/types/event.go index 6631e4bb9..83e5ee76a 100644 --- a/pkg/types/event.go +++ b/pkg/types/event.go @@ -85,6 +85,7 @@ func (w MatchedRules) GetURI() string { func (w MatchedRules) GetHash() string { for _, rule := range w { + //@sbl : let's fix this return rule["hash"].(string) } return "" @@ -92,6 +93,7 @@ func (w MatchedRules) GetHash() string { func (w MatchedRules) GetVersion() string { for _, rule := range w { + //@sbl : let's fix this return rule["version"].(string) } return "" @@ -99,7 +101,7 @@ func (w MatchedRules) GetVersion() string { func (w MatchedRules) GetName() string { for _, rule := range w { - //@sbl : let's fix this, we want to be able to the name of the rule :) + //@sbl : let's fix this return rule["name"].(string) } return ""