mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
console: squash golint warnings (#16836)
This commit is contained in:
parent
930ec9ba86
commit
67fe815714
2 changed files with 4 additions and 2 deletions
|
|
@ -314,7 +314,7 @@ func (b *bridge) SleepBlocks(call jsre.Call) (goja.Value, error) {
|
|||
}
|
||||
|
||||
type jsonrpcCall struct {
|
||||
Id int64
|
||||
ID int64
|
||||
Method string
|
||||
Params []interface{}
|
||||
}
|
||||
|
|
@ -348,7 +348,7 @@ func (b *bridge) Send(call jsre.Call) (goja.Value, error) {
|
|||
for _, req := range reqs {
|
||||
resp := call.VM.NewObject()
|
||||
resp.Set("jsonrpc", "2.0")
|
||||
resp.Set("id", req.Id)
|
||||
resp.Set("id", req.ID)
|
||||
|
||||
var result json.RawMessage
|
||||
err = b.client.Call(&result, req.Method, req.Params...)
|
||||
|
|
|
|||
|
|
@ -73,6 +73,8 @@ type Console struct {
|
|||
printer io.Writer // Output writer to serialize any display strings to
|
||||
}
|
||||
|
||||
// New initializes a JavaScript interpreted runtime environment and sets defaults
|
||||
// with the config struct.
|
||||
func New(config Config) (*Console, error) {
|
||||
// Handle unset config values gracefully
|
||||
if config.Prompter == nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue