commit | 5d2e5a81641f2f82791791b8a08985980a54aff8 | [log] [tgz] |
---|---|---|
author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | Mon Dec 16 15:19:33 2013 -0800 |
committer | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | Mon Dec 16 15:19:33 2013 -0800 |
tree | de9889fc618b7527c2ecccbf1612779fc22e6bd8 | |
parent | 41b1079d805fb5ad8582287594fa8e2a0948cd65 [diff] |
fix compile issues
diff --git a/mapstructure.go b/mapstructure.go index 143f519..dae28dd 100644 --- a/mapstructure.go +++ b/mapstructure.go
@@ -558,10 +558,10 @@ // doing case-insensitive search. for dataValKey, _ := range dataValKeys { mK, ok := dataValKey.Interface().(string) -+ if !ok { -+ // Not a string key -+ continue -+ } + if !ok { + // Not a string key + continue + } if strings.EqualFold(mK, fieldName) { rawMapKey = dataValKey