forked from cerc-io/plugeth
internal/debug: make gosimple linter happy
This commit is contained in:
parent
e28f713ada
commit
9bf495bfc9
@ -207,7 +207,7 @@ func (*HandlerT) Stacks(filter *string) string {
|
|||||||
// interpreter:
|
// interpreter:
|
||||||
//
|
//
|
||||||
// E.g. (eth || snap) && !p2p -> (eth in Value || snap in Value) && p2p not in Value
|
// E.g. (eth || snap) && !p2p -> (eth in Value || snap in Value) && p2p not in Value
|
||||||
expanded = regexp.MustCompile("[:/\\.A-Za-z0-9_-]+").ReplaceAllString(expanded, "`$0` in Value")
|
expanded = regexp.MustCompile(`[:/\.A-Za-z0-9_-]+`).ReplaceAllString(expanded, "`$0` in Value")
|
||||||
expanded = regexp.MustCompile("!(`[:/\\.A-Za-z0-9_-]+`)").ReplaceAllString(expanded, "$1 not")
|
expanded = regexp.MustCompile("!(`[:/\\.A-Za-z0-9_-]+`)").ReplaceAllString(expanded, "$1 not")
|
||||||
expanded = strings.Replace(expanded, "||", "or", -1)
|
expanded = strings.Replace(expanded, "||", "or", -1)
|
||||||
expanded = strings.Replace(expanded, "&&", "and", -1)
|
expanded = strings.Replace(expanded, "&&", "and", -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user