-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
refactorRefactoring existing code.Refactoring existing code.
Description
The SetupPokemonFlagSet() and SetupAbilityFlagSet() commands return several separate values. Readability can be improved by using a struct:
type PokemonFlags struct {
FlagSet *flag.FlagSet
Abilities *bool
ShortAbilities *bool
Defense *bool
ShortDefense *bool
Image *string
ShortImage *string
Move *bool
ShortMove *bool
Stats *bool
ShortStats *bool
Types *bool
ShortTypes *bool
}and
type AbilityFlags struct {
FlagSet *flag.FlagSet
Pokemon *bool
ShortPokemon *bool
}coderabbitai
Metadata
Metadata
Assignees
Labels
refactorRefactoring existing code.Refactoring existing code.
Projects
Status
Completed