Skip to content

tui: drop a useless assignment in the prompt renderer - #2

Merged
sadgoodman merged 1 commit into
masterfrom
fix/useless-assignment
Sep 18, 2026
Merged

sadgoodman merged 1 commit into
masterfrom
fix/useless-assignment

Conversation

@sadgoodman

Copy link
Copy Markdown
Owner

CodeQL reports go/useless-assignment-to-local on the prompt renderer: the value returned by the second screen.Text call was stored in x and never read.

The label position is now computed once into valStart, which is also what the cursor calculation below it uses. No behaviour change — the same two Text calls happen at the same columns.

Closes the only open code-scanning alert.

CodeQL (go/useless-assignment-to-local) flagged the result of the second
screen.Text call, which nothing read. Assign the label position once and use it
directly.
@sadgoodman
sadgoodman merged commit 575c8bf into master Sep 18, 2026
7 checks passed
@sadgoodman
sadgoodman deleted the fix/useless-assignment branch September 18, 2026 23:03
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.

1 participant