Skip to content

Commit d3ab0e8

Browse files
sallyomclaude
andcommitted
Fix ESLint error: remove unused compressionError variable
Removed unused catch parameter to fix TypeScript/ESLint build error. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent e8e801e commit d3ab0e8

File tree

1 file changed

+2
-2
lines changed
  • components/frontend/src/app/api/projects/[name]/agentic-sessions/[sessionName]/workspace/upload

1 file changed

+2
-2
lines changed

components/frontend/src/app/api/projects/[name]/agentic-sessions/[sessionName]/workspace/upload/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export async function POST(
124124
if (isImageFile(contentType)) {
125125
try {
126126
fileBuffer = await compressImageIfNeeded(fileBuffer, contentType, maxSize);
127-
} catch (compressionError) {
127+
} catch {
128128
return new Response(
129129
JSON.stringify({
130130
error: `Image too large and could not be compressed. Please reduce image size and try again.`
@@ -228,7 +228,7 @@ export async function POST(
228228
if (isImageFile(contentType)) {
229229
try {
230230
fileBuffer = await compressImageIfNeeded(fileBuffer, contentType, maxSize);
231-
} catch (compressionError) {
231+
} catch {
232232
return new Response(
233233
JSON.stringify({
234234
error: `Image too large and could not be compressed. Please reduce image size and try again.`

0 commit comments

Comments
 (0)