This commit is contained in:
bui 2023-10-24 18:16:39 +02:00
parent 9edde09608
commit eafffe7c94

View file

@ -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 ""