From 7cd04639534d0bfdc3d62f620fe050b2d8275bfb Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Mon, 7 Dec 2020 11:12:02 +0800 Subject: [PATCH] fix lint errors (#249) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * simplify code, format makefile * simplify code * some optimize by kevwan and benying (#240) Co-authored-by: 杨志泉 * optimization (#241) * optimize docker file generation, make docker build faster * support k8s deployment yaml generation * fix lint errors Co-authored-by: benying <31179034+benyingY@users.noreply.github.com> Co-authored-by: 杨志泉 Co-authored-by: bittoy --- tools/goctl/api/gogen/gen_test.go | 2 +- zrpc/internal/chainclientinterceptors_test.go | 2 +- zrpc/internal/chainserverinterceptors_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/goctl/api/gogen/gen_test.go b/tools/goctl/api/gogen/gen_test.go index 3f738c17..742375b1 100644 --- a/tools/goctl/api/gogen/gen_test.go +++ b/tools/goctl/api/gogen/gen_test.go @@ -25,7 +25,7 @@ info( // TODO: test // { type Request struct { // TODO: test - // TOOD + // TODO Name string ` + "`" + `path:"name,options=you|me"` + "`" + ` // } } // TODO: test diff --git a/zrpc/internal/chainclientinterceptors_test.go b/zrpc/internal/chainclientinterceptors_test.go index b1957c19..96fdc2ac 100644 --- a/zrpc/internal/chainclientinterceptors_test.go +++ b/zrpc/internal/chainclientinterceptors_test.go @@ -14,4 +14,4 @@ func TestWithStreamClientInterceptors(t *testing.T) { func TestWithUnaryClientInterceptors(t *testing.T) { opts := WithUnaryClientInterceptors() assert.NotNil(t, opts) -} \ No newline at end of file +} diff --git a/zrpc/internal/chainserverinterceptors_test.go b/zrpc/internal/chainserverinterceptors_test.go index 05b26a0c..127353ce 100644 --- a/zrpc/internal/chainserverinterceptors_test.go +++ b/zrpc/internal/chainserverinterceptors_test.go @@ -14,4 +14,4 @@ func TestWithStreamServerInterceptors(t *testing.T) { func TestWithUnaryServerInterceptors(t *testing.T) { opts := WithUnaryServerInterceptors() assert.NotNil(t, opts) -} \ No newline at end of file +}