From 55fac1047e36ffc8c6664ce0ba6116e991371453 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Wed, 13 Apr 2022 13:14:12 +0200 Subject: [PATCH] chore: fix lint Signed-off-by: Mark Sagi-Kazar --- viper.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/viper.go b/viper.go index 3481d1d..4a9dac9 100644 --- a/viper.go +++ b/viper.go @@ -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 @@ -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 == "" {