From 0f29a26efa17375d2cb4c279566581baf9f18c2f Mon Sep 17 00:00:00 2001 From: HaoyangLiu Date: Thu, 13 Sep 2018 22:35:23 +0800 Subject: [PATCH] Add a empty statik.go to avoid test_lint failure and add gocyclo for BroadcastTxRequestHandlerFn --- client/lcd/statik/statik.go | 12 ++++++++++++ client/tx/broadcast.go | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 client/lcd/statik/statik.go diff --git a/client/lcd/statik/statik.go b/client/lcd/statik/statik.go new file mode 100644 index 0000000000..0a4a9eb2db --- /dev/null +++ b/client/lcd/statik/statik.go @@ -0,0 +1,12 @@ +// Code generated by statik. DO NOT EDIT. + +package statik + +import ( + "github.com/rakyll/statik/fs" +) + +func init() { + data := "" + fs.Register(data) +} diff --git a/client/tx/broadcast.go b/client/tx/broadcast.go index fdb8bd8d10..cce7ef3533 100644 --- a/client/tx/broadcast.go +++ b/client/tx/broadcast.go @@ -21,7 +21,8 @@ type BroadcastBody struct { Return string `json:"return"` } -// BroadcastTx REST Handler +// BroadcastTxRequestHandlerFn REST Handler +// nolint: gocyclo func BroadcastTxRequestHandlerFn(cdc *wire.Codec, ctx context.CLIContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var txBody BroadcastBody