Skip to content

hooks/ponytail-mode-tracker.js: unreachable condition /ponytail:ponytail-review #362

Description

@nanaubusiness

In hooks/ponytail-mode-tracker.js line 24, the condition cmd === '/ponytail:ponytail-review' can never be true.

cmd is derived from parts[0].replace(/^[@$]/, '') which only strips a leading @ or $ sigil — it does not alter colons. For cmd to equal /ponytail:ponytail-review, the input would need to contain that exact string already, which the regex at line 17 would never match (no 'ponytail' immediately after the sigil character).

This is dead code — likely a copy-paste error where the developer meant /ponytail:ponytail for the second disjunct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions