Skip to content

Commit

Permalink
Fixed issues after updating
Browse files Browse the repository at this point in the history
  • Loading branch information
evg4b committed Dec 30, 2023
1 parent 2077470 commit f2b6b47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ __debug_bin
dist
coverage.xml
fisherman
.DS_Store
2 changes: 1 addition & 1 deletion internal/handling/rules_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func getScriptRules(ruleCollection []Rule) []Rule {
}

func filterRules(rules []Rule, predicate func(Rule) bool) []Rule {
var filteredRules []Rule
filteredRules := make([]Rule, 0, len(rules))

for _, rule := range rules {
if predicate(rule) {
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/string_slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

func Filter(slice []string, predicate func(string) bool) []string {
var resultSlice []string
resultSlice := make([]string, 0, len(slice))

for i := range slice {
if predicate(slice[i]) {
Expand Down

0 comments on commit f2b6b47

Please sign in to comment.