Skip to content

Commit

Permalink
fixing variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
steeve85 committed Jul 19, 2020
1 parent 83aad11 commit 51ac7bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions detector/pattern/pattern_detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ func processAllowedPatterns(addition gitrepo.Addition, tRC *talismanrc.TalismanR
}

// Processing allowed patterns based on file path
for k, v := range tRC.FileIgnoreConfig {
if v.FileName == string(addition.Path) {
for _, pattern := range v.AllowedPatterns {
for _, fileignoreconfig := range tRC.FileIgnoreConfig {
if fileignoreconfig.FileName == string(addition.Path) {
for _, pattern := range fileignoreconfig.AllowedPatterns {
addition.Data = []byte(replaceAllStrings(string(addition.Data), pattern))
}
}
Expand Down

0 comments on commit 51ac7bc

Please sign in to comment.