Skip to content

refactor: remove redundant blank identifier for argIndex in ListServers#1240

Closed
mesutoezdil wants to merge 1 commit intomodelcontextprotocol:mainfrom
mesutoezdil:refactor/remove-argindex-blank-identifier
Closed

refactor: remove redundant blank identifier for argIndex in ListServers#1240
mesutoezdil wants to merge 1 commit intomodelcontextprotocol:mainfrom
mesutoezdil:refactor/remove-argindex-blank-identifier

Conversation

@mesutoezdil
Copy link
Copy Markdown
Contributor

@mesutoezdil mesutoezdil commented May 3, 2026

The blank assignment _ = argIndex on line 201 of internal/database/postgres.go was not needed.

argIndex is already read by fmt.Sprintf two lines below when building the LIMIT clause of the query.

argIndex is already used in fmt.Sprintf on line 215 so the blank
assignment on the line before was not needed.
@rdimitrov
Copy link
Copy Markdown
Member

Thanks for the cleanup! Since #1241 already includes this same change, I'll close this one as superseded. 🙏

@rdimitrov rdimitrov closed this May 4, 2026
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.

2 participants