Skip to content

Commit ec4abde

Browse files
facundofariasclaude
andcommitted
fix: Change let to const for variables that are never reassigned
Fix ESLint errors in error handling code: - errorMessage: let -> const - suggestions: let -> const 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 96f1831 commit ec4abde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ export function createMCPServer(
146146
log.error(`Error executing tool ${name}:`, error);
147147

148148
// Build helpful error message with context
149-
let errorMessage = (error as Error).message;
150-
let suggestions: string[] = [];
149+
const errorMessage = (error as Error).message;
150+
const suggestions: string[] = [];
151151

152152
// Add context-specific suggestions based on error type
153153
if (error instanceof Error) {

0 commit comments

Comments
 (0)