Skip to content

Commit e7cb993

Browse files
committed
refactor: add fallthrough comments
1 parent 84b8d34 commit e7cb993

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/server/plugin.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ export default defineNitroPlugin(async nitro => {
117117
switch (detection.redirectOn) {
118118
case 'root':
119119
if (event.path !== '/') break
120+
// fallthrough (root has no prefix)
120121
case 'no prefix':
121122
if (pathLocale) break
123+
// fallthrough to resolve
122124
case 'all':
123125
resolvedPath ??= getLocalizedMatch(locale)
124126
break

0 commit comments

Comments
 (0)