Skip to content

Commit

Permalink
chore(lint): fix gofumpt
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
  • Loading branch information
sagikazarmark committed Jun 16, 2021
1 parent 04ef5fa commit 65ee986
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ linters:
- gci
- goconst
- gofmt
- gofumpt
- goimports
- gomoddirectives
- goprintffuncname
Expand Down Expand Up @@ -64,7 +65,6 @@ linters:
# - gocritic
# - gocyclo
# - godot
# - gofumpt
# - gosec
# - gosimple
# - ifshort
Expand Down
6 changes: 2 additions & 4 deletions util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
6 changes: 2 additions & 4 deletions viper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1993,17 +1993,15 @@ func TestCaseInsensitiveSet(t *testing.T) {
Reset()
m1 := map[string]interface{}{
"Foo": 32,
"Bar": map[interface{}]interface {
}{
"Bar": map[interface{}]interface{}{
"ABc": "A",
"cDE": "B",
},
}

m2 := map[string]interface{}{
"Foo": 52,
"Bar": map[interface{}]interface {
}{
"Bar": map[interface{}]interface{}{
"bCd": "A",
"eFG": "B",
},
Expand Down

0 comments on commit 65ee986

Please sign in to comment.