Skip to content

refactor(cli): drop vars that only kept imports alive - #61

Merged
aledbf merged 1 commit into
mainfrom
drop-dead-code
Nov 12, 2026
Merged

aledbf merged 1 commit into
mainfrom
drop-dead-code

Conversation

@aledbf

@aledbf aledbf commented Nov 12, 2026

Copy link
Copy Markdown
Member

Dead code found during the comment cleanup (#59):

  • internal/cli/exec.go: var _ = json.Marshal and var _ = strings.Join existed only to keep imports in use. encoding/json had no other use, so its import is gone too; strings is still used.
  • internal/cli/e2e_test.go: TestE2E_BuildUpExec_Image built an exec.Cmd it never ran (_ = cmd).

No behavior change, so there's no new test: go build, go vet (with and without the e2e tag) and task lint (deadcode included) pass.

🤖 Generated with Claude Code

exec.go held `var _ = json.Marshal` and `var _ = strings.Join` to keep
imports in use; json had no other use, so its import goes too.
TestE2E_BuildUpExec_Image built an exec.Cmd it never ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit 609e5d7 into main Nov 12, 2026
13 checks passed
@aledbf
aledbf deleted the drop-dead-code branch November 12, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant