Skip to content

chore: remove unused config fields and duplicate login code - #6

Merged
ValgulNecron merged 2 commits into
masterfrom
chore/cleanup-unused-code
Nov 27, 2026
Merged

ValgulNecron merged 2 commits into
masterfrom
chore/cleanup-unused-code

Conversation

@ValgulNecron

@ValgulNecron ValgulNecron commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Cleanup pass with no behaviour change.

What Where Why it is safe
Removed sshserver.Config.Addr and defaultAddr internal/sshserver/server.go, main.go Write-only: Serve takes the listener, nothing read the field
Removed apiclient.Config.Timeout and UserAgent internal/apiclient/client.go No caller or test set them, so the defaults always applied; the client uses the constants directly
One login helper for both auth callbacks internal/sshserver/server.go The password and public key callbacks ran the same timeout, API call, failure log and loggedIn sequence
Corrected stale lines specs.md, .testcoverage.yml The session-end route exists in the API now (api/internal/handlers/sftp_login.go); the coverage note described the scaffold

Verification

go build ./... passes and the test files compile. CI runs the suites.

No user-visible change, so no changelog entry is needed with the pointer bump.

🤖 Generated with Claude Code

- Drop sshserver.Config.Addr and its default: Serve takes the listener,
  so nothing read the field.
- Drop apiclient.Config.Timeout and UserAgent: no caller set them, so the
  defaults always applied; the client now uses the constants directly.
- Share the API login call between the password and public key callbacks
  through one login helper.
- specs.md and .testcoverage.yml: the session-end route exists in the API
  now, and the coverage note no longer describes a scaffold.

No behaviour change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 05c2cfa0-ad1d-4214-8c60-a8e424b6c5b5
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ValgulNecron ValgulNecron self-assigned this Nov 27, 2026
@ValgulNecron
ValgulNecron merged commit 7323a03 into master Nov 27, 2026
6 checks passed
@ValgulNecron
ValgulNecron deleted the chore/cleanup-unused-code branch November 27, 2026 22:32
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