forked from TrueCloudLab/neoneo-go
compiler: simplify increments as suggested by golint
This commit is contained in:
parent
c4e084b0d8
commit
4e651eaf83
1 changed files with 2 additions and 2 deletions
|
@ -246,12 +246,12 @@ func getMethod(t *testing.T, ctr interop.ContractMD, name string, params []strin
|
||||||
name = name[:4]
|
name = name[:4]
|
||||||
case strings.HasPrefix(name, "memorySearch"):
|
case strings.HasPrefix(name, "memorySearch"):
|
||||||
if strings.HasSuffix(name, "LastIndex") {
|
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"
|
name = "memorySearch"
|
||||||
case strings.HasPrefix(name, "stringSplit"):
|
case strings.HasPrefix(name, "stringSplit"):
|
||||||
if strings.HasSuffix(name, "NonEmpty") {
|
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"
|
name = "stringSplit"
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue