Skip to content

fix: refactor for DRY principles. - #49

Merged
sadsfae merged 2 commits into
mainfrom
development
Jul 15, 2026
Merged

fix: refactor for DRY principles.#49
sadsfae merged 2 commits into
mainfrom
development

Conversation

@sadsfae

@sadsfae sadsfae commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Multiple DRY refactoring changes.

sadsfae added 2 commits July 15, 2026 08:35
  Source code (cli.py):
  - C1: Replaced 10-line _get_version() file parser with from mozzo import __version__
  - C5: Removed redundant timeout=60 kwarg
  - S12: Moved "cmd_mod": 2 injection into _post_cmd(), removed from 6 callers
  - S1: Extracted _fetch_alerting_services() helper, replacing identical 5-line blocks in 2 methods
  - S2: Added ISSUE_STATUS_CODES = {4, 8, 16} class constant, updated 2 of 3 references (line 631 kept as-is per plan)
fix: refactor for DRY principles.
@sadsfae
sadsfae merged commit 49a3f92 into main Jul 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant