Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <[email protected]>
  • Loading branch information
sagikazarmark committed Apr 13, 2022
1 parent e0bf4ac commit 55fac10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,8 @@ func keyExists(k string, m map[string]interface{}) string {
}

func castToMapStringInterface(
src map[interface{}]interface{}) map[string]interface{} {
src map[interface{}]interface{},
) map[string]interface{} {
tgt := map[string]interface{}{}
for k, v := range src {
tgt[fmt.Sprintf("%v", k)] = v
Expand Down Expand Up @@ -1756,7 +1757,8 @@ func castMapFlagToMapInterface(src map[string]FlagValue) map[string]interface{}
// deep. Both map types are supported as there is a go-yaml fork that uses
// `map[string]interface{}` instead.
func mergeMaps(
src, tgt map[string]interface{}, itgt map[interface{}]interface{}) {
src, tgt map[string]interface{}, itgt map[interface{}]interface{},
) {
for sk, sv := range src {
tk := keyExists(sk, tgt)
if tk == "" {
Expand Down

0 comments on commit 55fac10

Please sign in to comment.