Skip to content

Remove redundant BEGIN eval block for Crypt::OpenSSL::Bignum#194

Merged
toddr merged 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/remove-redundant-bignum-begin
May 31, 2026
Merged

Remove redundant BEGIN eval block for Crypt::OpenSSL::Bignum#194
toddr merged 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/remove-redundant-bignum-begin

Conversation

@toddr-bot
Copy link
Copy Markdown
Contributor

Summary

  • Remove dead BEGIN { eval { require Crypt::OpenSSL::Bignum } } block from RSA.pm
  • This block dates from when Bignum was an optional dependency, loaded conditionally
  • Since commit e1c9975 added use Crypt::OpenSSL::Bignum; as a hard requirement, the BEGIN block is unreachable: if use fails, compilation aborts before the BEGIN block runs

Test plan

  • make test — all 667 tests pass
  • No behavioral change — the use statement already guarantees Bignum is loaded

🤖 Generated with Claude Code

The BEGIN block that conditionally required Crypt::OpenSSL::Bignum
dates from when Bignum was an optional dependency. Since commit
e1c9975 made it a hard requirement via `use Crypt::OpenSSL::Bignum`,
the BEGIN eval block is dead code — if the `use` fails, compilation
aborts before reaching the BEGIN block.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@timlegge timlegge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@timlegge timlegge marked this pull request as ready for review May 28, 2026 02:39
Copy link
Copy Markdown
Member

@timlegge timlegge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@toddr toddr merged commit ad34606 into cpan-authors:main May 31, 2026
28 checks passed
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.

3 participants