Skip to content

Commit

Permalink
Small bug fixed GetRawRule
Browse files Browse the repository at this point in the history
  • Loading branch information
qjerome committed Apr 5, 2019
1 parent fb7882d commit aab11d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (e *Engine) GetRawRule(regex string) (cs chan string) {
nameRegexp := regexp.MustCompile(regex)
go func() {
defer close(cs)
sorted := make([]string, len(e.rawRules))
sorted := make([]string, 0, len(e.rawRules))
for name := range e.rawRules {
sorted = append(sorted, name)
}
Expand Down

0 comments on commit aab11d1

Please sign in to comment.