Skip to content

Commit 62c07b6

Browse files
committed
Revert str variable change
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent f1fedf3 commit 62c07b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/report/strings.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,8 @@ func (mp *matchProcessor) process() []string {
117117

118118
matchBytes := mp.fc[o : o+l]
119119

120-
var str string
121120
if !containsUnprintable(matchBytes) {
122-
str = mp.pool.Intern(string(matchBytes))
121+
str := mp.pool.Intern(string(matchBytes))
123122
*result = append(*result, str)
124123
} else {
125124
patterns := make([]string, 0, len(mp.patterns))

0 commit comments

Comments
 (0)