Skip to content

Eliminate duplicated error handling in flag processing #179

@digitalghost-dev

Description

@digitalghost-dev

Replace repetitive error handling code across 5 flag checks for the pokemon command with a new utils.HandleFlagError() function and consolidated flag processing into a single loop using a configuration slice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorRefactoring existing code.

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions