Skip to content

Commit

Permalink
Remove invalid type panic for now (addresses #86)
Browse files Browse the repository at this point in the history
  • Loading branch information
untoldwind committed Apr 3, 2024
1 parent 2607924 commit 4dccbc2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arbitrary/gen_for_kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,6 @@ func (a *Arbitraries) genForKind(rt reflect.Type) gopter.Gen {
keyGen := a.GenForType(rt.Key())
valueGen := a.GenForType(rt.Elem())
return gen.MapOf(keyGen, valueGen)
default:
panic(fmt.Sprintf("Unsupported GenForType: %v", rt.Kind()))
}
return nil
}

0 comments on commit 4dccbc2

Please sign in to comment.