Skip to content

refactor: deduplicate constants and error helper in managedInstall#125

Merged
patchloom-release[bot] merged 1 commit into
mainfrom
fix/deduplicate-managed-install
Jun 8, 2026
Merged

refactor: deduplicate constants and error helper in managedInstall#125
patchloom-release[bot] merged 1 commit into
mainfrom
fix/deduplicate-managed-install

Conversation

@SebTardif

Copy link
Copy Markdown
Contributor

Extract three patterns duplicated across installPatchloom, updatePatchloom, and reinstallPatchloom:

  • MANAGED_INSTALL_UNAVAILABLE constant (was duplicated on lines 33, 79, 158)
  • PROGRESS_OPTIONS constant (was duplicated on lines 47-52, 93-98, 182-187)
  • errorMessage() helper (was duplicated on lines 68, 147, 203)

Net: -21 lines removed, +22 lines added (constants and helper at module scope).

All 249 tests pass, coverage thresholds met, package builds cleanly.

@patchloom-release patchloom-release Bot enabled auto-merge (squash) June 8, 2026 13:12
Extract MANAGED_INSTALL_UNAVAILABLE constant, PROGRESS_OPTIONS constant,
and errorMessage() helper used identically across installPatchloom,
updatePatchloom, and reinstallPatchloom. Reduces 3x duplication of each
pattern to a single definition at module scope.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@SebTardif SebTardif force-pushed the fix/deduplicate-managed-install branch from 312905d to 739d7d8 Compare June 8, 2026 13:15
@patchloom-release patchloom-release Bot merged commit aa4c4b0 into main Jun 8, 2026
19 checks passed
@patchloom-release patchloom-release Bot deleted the fix/deduplicate-managed-install branch June 8, 2026 13:18
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