core: golint updates for this or self warning (#16633)

This commit is contained in:
kiel barry
2018-05-02 01:27:59 -07:00
committed by Péter Szilágyi
parent 670bae4cd3
commit a7720b5926
4 changed files with 18 additions and 18 deletions

View File

@ -375,10 +375,10 @@ var opCodeToString = map[OpCode]string{
SWAP: "SWAP",
}
func (o OpCode) String() string {
str := opCodeToString[o]
func (op OpCode) String() string {
str := opCodeToString[op]
if len(str) == 0 {
return fmt.Sprintf("Missing opcode 0x%x", int(o))
return fmt.Sprintf("Missing opcode 0x%x", int(op))
}
return str