From 7f26190795c6e7c15f7d7ac65f195cb370f92448 Mon Sep 17 00:00:00 2001 From: schmidtw Date: Fri, 22 Sep 2023 16:30:42 -0700 Subject: [PATCH] Fix the style warnings and enable them moving forward. --- .github/workflows/ci.yml | 1 - wrphttp/handler_test.go | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7d27c4..7ca78bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,5 @@ jobs: uses: xmidt-org/shared-go/.github/workflows/ci.yml@5bc4b83f25ff4c944cd6253ba189e50d1997ab3c # v4.1.0 with: copyright-skip: true - style-skip: true release-type: library secrets: inherit diff --git a/wrphttp/handler_test.go b/wrphttp/handler_test.go index 5c5a772..f296d71 100644 --- a/wrphttp/handler_test.go +++ b/wrphttp/handler_test.go @@ -165,11 +165,11 @@ func TestWithDecoder(t *testing.T) { func TestWithBefore(t *testing.T) { testData := [][]MessageFunc{ nil, - []MessageFunc{}, - []MessageFunc{ + {}, + { func(context.Context, *wrp.Message) context.Context { return nil }, }, - []MessageFunc{ + { func(context.Context, *wrp.Message) context.Context { return nil }, func(context.Context, *wrp.Message) context.Context { return nil }, func(context.Context, *wrp.Message) context.Context { return nil }, @@ -194,11 +194,11 @@ func TestWithBefore(t *testing.T) { func TestWithAfter(t *testing.T) { testData := [][]MessageFunc{ nil, - []MessageFunc{}, - []MessageFunc{ + {}, + { func(context.Context, *wrp.Message) context.Context { return nil }, }, - []MessageFunc{ + { func(context.Context, *wrp.Message) context.Context { return nil }, func(context.Context, *wrp.Message) context.Context { return nil }, func(context.Context, *wrp.Message) context.Context { return nil },