aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/jeth.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-04-15 17:06:57 +0800
committerFelix Lange <fjl@twurst.com>2016-04-15 17:17:27 +0800
commit6fdd0893c3ebf57e5a9ba2af569c595c859ab902 (patch)
tree2df67265a0350b68b2f10ba2f7dcd292fef59ad0 /cmd/utils/jeth.go
parent68c755a238f1a204087c2843f01d48fc6039716f (diff)
downloadgo-tangerine-6fdd0893c3ebf57e5a9ba2af569c595c859ab902.tar.gz
go-tangerine-6fdd0893c3ebf57e5a9ba2af569c595c859ab902.tar.zst
go-tangerine-6fdd0893c3ebf57e5a9ba2af569c595c859ab902.zip
all: fix go vet warnings
Diffstat (limited to 'cmd/utils/jeth.go')
-rw-r--r--cmd/utils/jeth.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/cmd/utils/jeth.go b/cmd/utils/jeth.go
index 0017790f3..9410180b0 100644
--- a/cmd/utils/jeth.go
+++ b/cmd/utils/jeth.go
@@ -131,13 +131,11 @@ func (self *Jeth) NewAccount(call otto.FunctionCall) (response otto.Value) {
return otto.FalseValue()
}
- if ret, err := call.Otto.Call("jeth.newAccount", nil, passwd); err == nil {
+ ret, err := call.Otto.Call("jeth.newAccount", nil, passwd)
+ if err == nil {
return ret
- } else {
- fmt.Printf("%v\n", err)
- return otto.FalseValue()
}
-
+ fmt.Println(err)
return otto.FalseValue()
}
@@ -233,7 +231,6 @@ func (self *Jeth) Send(call otto.FunctionCall) (response otto.Value) {
func throwJSExeception(msg interface{}) otto.Value {
p, _ := otto.ToValue(msg)
panic(p)
- return p
}
// Sleep will halt the console for arg[0] seconds.