Skip to content

Remove extraneous error check#191

Merged
danielbachhuber merged 1 commit intowp-cli:mainfrom
ernilambar:190-fix-error-check
Feb 22, 2024
Merged

Remove extraneous error check#191
danielbachhuber merged 1 commit intowp-cli:mainfrom
ernilambar:190-fix-error-check

Conversation

@ernilambar
Copy link
Member

Fixes #190

I think we don't need to add another test for this PR. After adding separate test for this change I realized there is already similar test for the case when media could not be regenerated. So I reverted the tests addition. See: https://github.com/wp-cli/media-command/blob/main/features/media-regenerate.feature#L309

@ernilambar ernilambar requested a review from a team as a code owner February 22, 2024 05:13
@danielbachhuber danielbachhuber added this to the 2.1.0 milestone Feb 22, 2024
Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, thanks @ernilambar !

@danielbachhuber danielbachhuber added the command:media-regenerate Related to 'media regenerate' command label Feb 22, 2024
@danielbachhuber danielbachhuber merged commit 0a79826 into wp-cli:main Feb 22, 2024
@ernilambar ernilambar deleted the 190-fix-error-check branch March 19, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:media-regenerate Related to 'media regenerate' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dead code in media command class

2 participants