Skip to content

Commit

Permalink
console: squash golint warnings (ethereum#16836)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan committed Jan 3, 2025
1 parent 53784e2 commit ca56123
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
}
Expand Down Expand Up @@ -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...)
Expand Down
2 changes: 2 additions & 0 deletions console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ca56123

Please sign in to comment.