forked from cerc-io/ipld-eth-server
Drop else when if statement includes return
This commit is contained in:
1 parent
0ded7bcd62
commit
eba868ff00
2 files changed
+2
-4
No files matched your search
@@ -49,9 +49,8 @@ func (client RpcClient) CallContext(ctx context.Context, result interface{}, met
|
||||
//Ganache however does not ignore it, and throws an 'Incorrect number of arguments' error.
|
||||
if args == nil {
|
||||
return client.client.CallContext(ctx, result, method)
|
||||
} else {
|
||||
return client.client.CallContext(ctx, result, method, args...)
|
||||
}
|
||||
return client.client.CallContext(ctx, result, method, args...)
|
||||
}
|
||||
|
||||
func (client RpcClient) IpcPath() string {
|
||||
|
||||
Reference in new issue
Block a user