Skip to content

refactor: extract waitForFile and waitForHTTP from waitForDependencies#335

Merged
jwilder merged 1 commit into
masterfrom
quality/20260619-091120
Jun 24, 2026
Merged

refactor: extract waitForFile and waitForHTTP from waitForDependencies#335
jwilder merged 1 commit into
masterfrom
quality/20260619-091120

Conversation

@jwilder

@jwilder jwilder commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Extract the inline file-waiting and HTTP-waiting goroutines from
waitForDependencies into named functions waitForFile and waitForHTTP.
This follows the existing pattern established by waitForSocket and
reduces the cyclomatic complexity of waitForDependencies from 20 to 8.

Changes:

  • main.go: Extract waitForFile and waitForHTTP as standalone functions
  • template.go: Minor cleanup

Extract the inline file-waiting and HTTP-waiting goroutines from
waitForDependencies into named functions waitForFile and waitForHTTP.
This follows the existing pattern established by waitForSocket and
reduces the cyclomatic complexity of waitForDependencies from 20 to 8.
@jwilder jwilder merged commit 2b3e41a into master Jun 24, 2026
12 checks passed
@jwilder jwilder deleted the quality/20260619-091120 branch June 24, 2026 05:22
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