compiler: simplify increments as suggested by golint

This commit is contained in:
Roman Khimov 2021-05-12 22:52:07 +03:00
parent c4e084b0d8
commit 4e651eaf83

View file

@ -246,12 +246,12 @@ func getMethod(t *testing.T, ctr interop.ContractMD, name string, params []strin
name = name[:4]
case strings.HasPrefix(name, "memorySearch"):
if strings.HasSuffix(name, "LastIndex") {
paramLen += 1 // true should be appended inside of an interop
paramLen++ // true should be appended inside of an interop
}
name = "memorySearch"
case strings.HasPrefix(name, "stringSplit"):
if strings.HasSuffix(name, "NonEmpty") {
paramLen += 1 // true should be appended inside of an interop
paramLen++ // true should be appended inside of an interop
}
name = "stringSplit"
default: