Skip to content

Commit adf217e

Browse files
fixing accidental duplicate code (#190)
1 parent 6ee6a86 commit adf217e

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

cmd/pokemon/pokemon.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ func PokemonCommand() (string, error) {
104104
for _, entry := range pokemonSpeciesStruct.EggGroups {
105105
modernEggGroupNames := map[string]string{
106106
"indeterminate": "Amorphous",
107-
}
108-
109-
if name, exists := modernEggGroupNames[entry.Name]; exists {
110-
eggGroupSlice = append(eggGroupSlice, name)
111-
} else {
112-
capitalizedEggGroup := cases.Title(language.English).String(entry.Name)
113-
eggGroupSlice = append(eggGroupSlice, capitalizedEggGroup)
114-
}
115-
modernEggGroupNames = map[string]string{
116-
"indeterminate": "Amorphous",
117107
"ground": "Field",
118108
"humanshape": "Human-Like",
119109
"plant": "Grass",
@@ -126,7 +116,6 @@ func PokemonCommand() (string, error) {
126116
capitalizedEggGroup := cases.Title(language.English).String(entry.Name)
127117
eggGroupSlice = append(eggGroupSlice, capitalizedEggGroup)
128118
}
129-
130119
}
131120

132121
sort.Strings(eggGroupSlice)

0 commit comments

Comments
 (0)