Skip to content

Commit 7540731

Browse files
committed
add missing exhaustive check
1 parent 68b18f2 commit 7540731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/server/image-optimizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ export async function detectContentType(
271271
case 'rad':
272272
case 'raw':
273273
case 'v':
274+
case undefined:
274275
default:
275276
return null
276277
}
277-
return null
278278
}
279279

280280
export class ImageOptimizerCache {

0 commit comments

Comments
 (0)