Skip to content

Commit 9bf495b

Browse files
committed
internal/debug: make gosimple linter happy
1 parent e28f713 commit 9bf495b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/debug/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func (*HandlerT) Stacks(filter *string) string {
207207
// interpreter:
208208
//
209209
// E.g. (eth || snap) && !p2p -> (eth in Value || snap in Value) && p2p not in Value
210-
expanded = regexp.MustCompile("[:/\\.A-Za-z0-9_-]+").ReplaceAllString(expanded, "`$0` in Value")
210+
expanded = regexp.MustCompile(`[:/\.A-Za-z0-9_-]+`).ReplaceAllString(expanded, "`$0` in Value")
211211
expanded = regexp.MustCompile("!(`[:/\\.A-Za-z0-9_-]+`)").ReplaceAllString(expanded, "$1 not")
212212
expanded = strings.Replace(expanded, "||", "or", -1)
213213
expanded = strings.Replace(expanded, "&&", "and", -1)

0 commit comments

Comments
 (0)