From 6a8ee097ff1116d1cb114e7a34012633b9fd6b64 Mon Sep 17 00:00:00 2001 From: Dylan Reimerink <97.dylan@gmail.com> Date: Thu, 5 Mar 2020 21:12:02 +0100 Subject: [PATCH] Removed whitespace to satify coding standards --- viper.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/viper.go b/viper.go index a18b361..7d0429d 100644 --- a/viper.go +++ b/viper.go @@ -602,9 +602,7 @@ func (v *Viper) searchMapWithPathPrefixes(source interface{}, path []string) int // search for path prefixes, starting from the longest one for i := len(path); i > 0; i-- { prefixKey := strings.ToLower(strings.Join(path[0:i], v.keyDelim)) - if sourceSlice, ok := source.([]interface{}); ok { - //if the prefixKey is a number which is not out of bounds of the slice if index, err := strconv.Atoi(prefixKey); err == nil && len(sourceSlice) > index { next := sourceSlice[index]