Skip to content

Commit

Permalink
Removed unnecessary else
Browse files Browse the repository at this point in the history
  • Loading branch information
alithethird committed Aug 1, 2024
1 parent 11df93d commit fc22478
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unit/wordpress_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,7 @@ def _mock_wp_update_database(self, _cmd):
"""Simulate ``wp core update-db`` command execution in the container."""
if self._fail_wp_update_database:
return ExecProcessMock(return_code=1, stdout="", stderr="")
else:
return ExecProcessMock(return_code=0, stdout="", stderr="")
return ExecProcessMock(return_code=0, stdout="", stderr="")

def __getattr__(self, item):
"""Passthrough anything else to :class:`ops.charm.model.Container`.
Expand Down

0 comments on commit fc22478

Please sign in to comment.