From 65ee98690cc32b2019383929119eb782d71842a5 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Wed, 16 Jun 2021 03:02:27 +0200 Subject: [PATCH] chore(lint): fix gofumpt Signed-off-by: Mark Sagi-Kazar --- .golangci.yml | 2 +- util_test.go | 6 ++---- viper_test.go | 6 ++---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 66aadec..4f970ac 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -22,6 +22,7 @@ linters: - gci - goconst - gofmt + - gofumpt - goimports - gomoddirectives - goprintffuncname @@ -64,7 +65,6 @@ linters: # - gocritic # - gocyclo # - godot - # - gofumpt # - gosec # - gosimple # - ifshort diff --git a/util_test.go b/util_test.go index a377d5b..941d8a2 100644 --- a/util_test.go +++ b/util_test.go @@ -23,16 +23,14 @@ func TestCopyAndInsensitiviseMap(t *testing.T) { var ( given = map[string]interface{}{ "Foo": 32, - "Bar": map[interface{}]interface { - }{ + "Bar": map[interface{}]interface{}{ "ABc": "A", "cDE": "B", }, } expected = map[string]interface{}{ "foo": 32, - "bar": map[string]interface { - }{ + "bar": map[string]interface{}{ "abc": "A", "cde": "B", }, diff --git a/viper_test.go b/viper_test.go index a5bbbd4..f748c7a 100644 --- a/viper_test.go +++ b/viper_test.go @@ -1993,8 +1993,7 @@ func TestCaseInsensitiveSet(t *testing.T) { Reset() m1 := map[string]interface{}{ "Foo": 32, - "Bar": map[interface{}]interface { - }{ + "Bar": map[interface{}]interface{}{ "ABc": "A", "cDE": "B", }, @@ -2002,8 +2001,7 @@ func TestCaseInsensitiveSet(t *testing.T) { m2 := map[string]interface{}{ "Foo": 52, - "Bar": map[interface{}]interface { - }{ + "Bar": map[interface{}]interface{}{ "bCd": "A", "eFG": "B", },