Skip to content

refactor: use slices.Contains for KV route lookup - #7008

Open
iliya-vidrush wants to merge 2 commits into
anomalyco:devfrom
iliya-vidrush:refactor/slices-contains
Open

iliya-vidrush wants to merge 2 commits into
anomalyco:devfrom
iliya-vidrush:refactor/slices-contains

Conversation

@iliya-vidrush

Copy link
Copy Markdown

Summary

  • Replaces the existsRoute helper with slices.Contains at both call sites; it only wrapped a linear scan.
  • Formatting is split into its own commit — the file was not gofmt-clean on dev, so review the second commit for the actual change.

Validation

  • go build ./... and go vet ./pkg/server/resource pass.

This branch has not been deployed

No deployments
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