Skip to content

Commit

Permalink
🐛 Fix ruleset not found.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Jul 7, 2023
1 parent 555f4c0 commit 9ae7c00
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,7 @@ func (r *Rules) addRules(ruleset *api.RuleSet) (err error) {
if fileRef == nil {
continue
}
name := strings.Join(
[]string{
strconv.Itoa(int(ruleset.ID)),
fileRef.Name},
"-")
path := path.Join(ruleDir, name)
path := path.Join(ruleDir, fileRef.Name)
addon.Activity("[FILE] Get rule: %s", path)
err = addon.File.Get(ruleset.File.ID, path)
if err != nil {
Expand Down

0 comments on commit 9ae7c00

Please sign in to comment.