Skip to content

refactor: Remove unused NewNilSigner and NewNilRSASigner functions#13

Merged
frostyardyeti[bot] merged 1 commit intomainfrom
yeti/improve-32c6
Mar 27, 2026
Merged

refactor: Remove unused NewNilSigner and NewNilRSASigner functions#13
frostyardyeti[bot] merged 1 commit intomainfrom
yeti/improve-32c6

Conversation

@frostyardyeti
Copy link
Copy Markdown

@frostyardyeti frostyardyeti bot commented Mar 27, 2026

Both NewNilSigner() in internal/signer/gpg.go:261-264 and NewNilRSASigner() in internal/signer/rsa.go:125-128 are exported functions that are never called anywhere in the codebase. They return nil which doesn't implement the interface (calling any method on the returned value would panic), making them actively misleading. The codebase already handles nil signers via nil checks (e.g., if g.signer != nil throughout generators). Remove both functions.


Automated improvement by yeti improvement-identifier

Both functions return nil which doesn't implement the interface,
making them actively misleading. The codebase already handles nil
signers via nil checks throughout generators.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@frostyardyeti frostyardyeti bot merged commit 5f03a6b into main Mar 27, 2026
1 check 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.

2 participants