Skip to content

Change location of image size valiadation #282

@digitalghost-dev

Description

@digitalghost-dev

When using the --image=xx flag within the pokemon command, the check for a valid size happens too late in the pipeline.

Meaning that the image is downloaded first before the size is checked. Moving the sizeMap map to the beginning of the function will validate the size first before downloading the image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementImprovement to an existing feature.

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions