simplify returns

This commit is contained in:
Daniel Whitenack 2016-06-22 06:44:12 -05:00
parent ff1be499e0
commit 72bf6a236a
1 changed files with 0 additions and 3 deletions

View File

@ -18,7 +18,6 @@ func doCreateAccount(password, keydir *C.char) *C.char {
}`, address, pubKey, err.Error())
if err != nil {
fmt.Fprintln(os.Stderr, err)
return C.CString(out)
}
return C.CString(out)
}
@ -32,7 +31,6 @@ func doUnlockAccount(address, password *C.char) *C.char {
out := fmt.Sprintf("{\"error\": %s}", err.Error())
if err != nil {
fmt.Fprintln(os.Stderr, err)
return C.CString(out)
}
return C.CString(out)
}
@ -44,7 +42,6 @@ func doStartNode(datadir *C.char) *C.char {
out := fmt.Sprintf("{\"error\": %s}", err.Error())
if err != nil {
fmt.Fprintln(os.Stderr, err)
return C.CString(out)
}
return C.CString(out)
}