Skip to content

fix(watch): clear two no-op append warnings from go vet in cmdWatch #22

Description

@prakashUXtech

What

go vet reports two append with no values warnings in cmdWatch:

  • kb.go:3341
  • kb.go:3382

Both are pre-existing — they predate the MCP serve (#18) and contradiction-flagging (#19) work and were left untouched there to keep those PRs focused.

Why it matters

append(x) with no values is a no-op that almost always signals a dropped argument or a copy-paste slip. Either it's dead code that should go, or it's a real bug where the appended value got lost. Worth a look either way, and clearing it keeps go vet clean so future real warnings don't hide in the noise.

Fix

Inspect both sites in cmdWatch, decide whether the append was meant to carry a value or should be removed, and clean up. Confirm go vet ./... is quiet afterward.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions