Skip to content

chore: correct stale comments and a FAQ claim about wt remove - #4831

Merged
max-sixty merged 1 commit into
mainfrom
nightly/clean-44031200023-cleanups
Nov 17, 2026
Merged

max-sixty merged 1 commit into
mainfrom
nightly/clean-44031200023-cleanups

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Five small corrections from the nightly survey, none of which change behavior:

  • FAQ, "What files does Worktrunk create?": said wt remove <branch> "deletes the branch". By default it deletes only a merged branch, as the same page's "What can Worktrunk delete?" section says. Now reads "deletes the branch if it's merged". The skill mirrors are regenerated.
  • tests/common/list_snapshots.rs: drops an #![allow(dead_code)] whose comment said the helpers are only used on some platforms. All three are called unconditionally from list.rs and list_layout.rs. cargo clippy --all-targets stays clean without it.
  • tests/integration_tests/switch_picker_dry_run.rs: "Same as above" sat under an unrelated test. It now names test_picker_dry_run_emits_configured_rows_and_cache_json.
  • src/git/remote_ref/gitea.rs: the TEA_NO_PROMPT comment said the code avoided "inventing a fake var" while doing exactly that. It now says the name is a placeholder that tea ignores.
  • src/commands/config/state.rs: handle_state_get's unknown-key error listed logs as valid, but there is no logs arm. Every caller in main.rs passes a literal key, so users never see this message.

No regression test: the changes touch only docs, comments, and an attribute. test_docs_are_in_sync passes.

- FAQ: wt remove deletes the branch only when it's merged, as the same
  page says further down.
- tests/common/list_snapshots.rs: drop an allow(dead_code) whose
  justification (platform-gated callers) is false; all three helpers are
  used unconditionally.
- switch_picker_dry_run.rs: name the test "same as above" refers to.
- gitea.rs: the TEA_NO_PROMPT comment claimed not to invent a variable
  while inventing one.
- state.rs: the unknown-key error listed logs, which handle_state_get
  has no arm for.
@worktrunk-bot worktrunk-bot added the nightly-cleanup Issues found by nightly code quality sweep label Nov 17, 2026
@max-sixty
max-sixty merged commit 93cc693 into main Nov 17, 2026
36 of 45 checks passed
@max-sixty
max-sixty deleted the nightly/clean-44031200023-cleanups branch November 17, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nightly-cleanup Issues found by nightly code quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants