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
kielbarry authored and firmianavan committed Aug 28, 2018
1 parent f2f1d6a commit 735d5ab
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 @@ -271,7 +271,7 @@ func (b *bridge) SleepBlocks(call otto.FunctionCall) (response otto.Value) {
}

type jsonrpcCall struct {
Id int64
ID int64
Method string
Params []interface{}
}
Expand Down Expand Up @@ -304,7 +304,7 @@ func (b *bridge) Send(call otto.FunctionCall) (response otto.Value) {
resps, _ := call.Otto.Object("new Array()")
for _, req := range reqs {
resp, _ := call.Otto.Object(`({"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...)
switch err := err.(type) {
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 735d5ab

Please sign in to comment.