From 8d7354f45b87bc0538cc2ff1652b180361f6d230 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 3 Jan 2014 10:22:07 -0600 Subject: [PATCH] Gofmt. --- jsoncmd.go | 6 +++--- jsoncmd_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jsoncmd.go b/jsoncmd.go index 2dd3cf0f..af55cc93 100644 --- a/jsoncmd.go +++ b/jsoncmd.go @@ -2830,7 +2830,7 @@ func (cmd *GetRawChangeAddressCmd) UnmarshalJSON(b []byte) error { // GetRawMempoolCmd is a type handling custom marshaling and // unmarshaling of getrawmempool JSON RPC commands. type GetRawMempoolCmd struct { - id interface{} + id interface{} Verbose bool } @@ -2847,7 +2847,7 @@ func NewGetRawMempoolCmd(id interface{}, optArgs ...bool) (*GetRawMempoolCmd, er verbose = optArgs[0] } return &GetRawMempoolCmd{ - id: id, + id: id, Verbose: verbose, }, nil } @@ -2892,7 +2892,7 @@ func (cmd *GetRawMempoolCmd) UnmarshalJSON(b []byte) error { } optArgs := make([]bool, 0, 1) - if len(r.Params) == 1 { + if len(r.Params) == 1 { verbose, ok := r.Params[0].(bool) if !ok { return errors.New("first optional parameter verbose must be a bool") diff --git a/jsoncmd_test.go b/jsoncmd_test.go index 2c20e4b7..db1d4246 100644 --- a/jsoncmd_test.go +++ b/jsoncmd_test.go @@ -550,7 +550,7 @@ var jsoncmdtests = []struct { return NewGetRawMempoolCmd(float64(1), true) }, result: &GetRawMempoolCmd{ - id: float64(1), + id: float64(1), Verbose: true, }, },