Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryanfsdf committed Apr 15, 2019
1 parent 1bd0016 commit a9a0197
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions codegen/type_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,8 @@ func (c *TypeConverter) genConverterForMap(
toFieldKeyID := keyID

toTypeKeyName := keyType
fromTypeKeyName, err := c.getGoTypeName(fromFieldMapType.KeySpec)
if err != nil {
return err
}
fromTypeKeyName, _ := c.getGoTypeName(fromFieldMapType.KeySpec)

if fromTypeKeyName != toTypeKeyName {
toFieldKeyID = toTypeKeyName + "(" + keyID + ")"
}
Expand Down

0 comments on commit a9a0197

Please sign in to comment.