chore(lint): fix gofumpt

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2021-06-16 03:02:27 +02:00 committed by Márk Sági-Kazár
parent 04ef5fa07d
commit 65ee98690c
3 changed files with 5 additions and 9 deletions

View file

@ -22,6 +22,7 @@ linters:
- gci
- goconst
- gofmt
- gofumpt
- goimports
- gomoddirectives
- goprintffuncname
@ -64,7 +65,6 @@ linters:
# - gocritic
# - gocyclo
# - godot
# - gofumpt
# - gosec
# - gosimple
# - ifshort

View file

@ -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",
},

View file

@ -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",
},