mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
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]
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue