Skip to content

Commit

Permalink
Fix loop var
Browse files Browse the repository at this point in the history
  • Loading branch information
kramvan1 committed Jan 21, 2025
1 parent 1ef2239 commit 0d5de50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rules/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ func formatPath(pattern string, m Attributes) (string, bool) {
if strings.HasPrefix(path, ":") {
attr := m.GetAttribute(path[1:])
if attr == nil {
s := path
attr = &s
attr = &path
allFound = false
}
result.WriteString(*attr)
Expand Down

0 comments on commit 0d5de50

Please sign in to comment.