Skip to content

Commit

Permalink
Ignore nil types.
Browse files Browse the repository at this point in the history
Fixes #67
  • Loading branch information
gdey committed Aug 6, 2016
1 parent ebeb2b9 commit b8a5b8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mvt/feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ func keyvalMapsFromFeatures(features []Feature) (keyMap []string, valMap []inter

switch vt := v.(type) {
default:
if vt == nil {
// ignore nil types
continue
}
return keyMap, valMap, fmt.Errorf("Unsupported type for value(%v) with key(%v) in tags for feature %v.", vt, k, f)

case string:
Expand Down

0 comments on commit b8a5b8c

Please sign in to comment.