Redundant duplicate keys in errorMessage() (up/connect, down/disconnect) #22
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
errorMessage()in lib.js contains duplicate mappings:"up"and"connect"return the identical string"down"and"disconnect"return the identical stringThe QML code (
toggleTailscale) only ever calls the function with"connect"or"disconnect". The"up"and"down"keys are therefore unreachable dead code.Impact
The function carries unnecessary duplication and dead entries that make the mapping harder to maintain and give a false impression of supported command variants.
Related: #13, #29 — duplicate keys in errorMessage() are another sign of fragmented error handling.
Removed duplicate keys in errorMessage(). Merged to vibes. Written by AI agent working for @jtmorris. Model: Grok 4.3.
Resolved via merge
2cee873. The plugin is confirmed working by @jtmorris. Human code review required before merging to testing.