Skip to content

Commit f8efff7

Browse files
Merge pull request #9 from allenhutchison/fix/lint-warnings
fix: resolve all ESLint warnings
2 parents 7ec63d2 + d59ed99 commit f8efff7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/index.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ server.registerTool(
9696
const operationId = operation.id;
9797

9898
// Start the upload in the background (fire-and-forget)
99-
(async () => {
99+
(async (): Promise<void> => {
100100
try {
101101
if (stats.isDirectory()) {
102102
let completedFiles = 0;
@@ -141,9 +141,10 @@ server.registerTool(
141141
uploadOperationManager.markCompleted(operationId);
142142
console.error(`[${operationId}] Upload complete`);
143143
}
144-
} catch (error: any) {
145-
console.error(`[${operationId}] Upload failed:`, error.message);
146-
uploadOperationManager.markFailed(operationId, error.message);
144+
} catch (error: unknown) {
145+
const message = error instanceof Error ? error.message : String(error);
146+
console.error(`[${operationId}] Upload failed:`, message);
147+
uploadOperationManager.markFailed(operationId, message);
147148
}
148149
})();
149150

@@ -327,7 +328,7 @@ server.registerTool(
327328

328329
// --- Start Server ---
329330

330-
async function main() {
331+
async function main(): Promise<void> {
331332
const transport = new StdioServerTransport();
332333
// Ensure config file exists
333334
WorkspaceConfigManager.load();

0 commit comments

Comments
 (0)