Skip to content

scripts/retry: Inline options no caller sets#224

Open
reakaleek wants to merge 1 commit into
mainfrom
audit/retry-js-inline-options
Open

scripts/retry: Inline options no caller sets#224
reakaleek wants to merge 1 commit into
mainfrom
audit/retry-js-inline-options

Conversation

@reakaleek

Copy link
Copy Markdown
Member

What

Drop the maxAttempts/baseDelay option knobs and the console.warn fallback from scripts/retry.js.

Why

Repo-wide over-engineering audit. The only caller (docs-builder/preview/cleanup/action.yml, via symlink) always passes { core } and never overrides the knobs — config for constants that never change.

How

Inlined 4 attempts / 1s base delay; core is now required so the warn fallback branch is gone. Caller signature unchanged.

Test plan

Node self-check: function fails once then succeeds — retries with warning, returns result.

🤖 Generated with Claude Code

The sole caller (docs-builder/preview/cleanup) always passes { core }
and never overrides maxAttempts or baseDelay, so the option knobs and
the console.warn fallback were dead flexibility. Inline the constants
and require core.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@reakaleek
reakaleek requested a review from a team as a code owner July 14, 2026 08:50
@reakaleek
reakaleek requested a review from cotti July 14, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant