Skip to content

Commit 3fc5b52

Browse files
committed
chore: wip
1 parent acbf046 commit 3fc5b52

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

storage/framework/core/router/src/router.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,18 @@ export class Router implements RouterInterface {
248248
}
249249

250250
private prepareGroupPrefix(options: string | RouteGroupOptions): void {
251-
if (this.groupPrefix !== '' && typeof options !== 'string')
252-
return this.setGroupPrefix(this.groupPrefix, options)
251+
if (this.groupPrefix !== '' && typeof options !== 'string') {
252+
this.setGroupPrefix(this.groupPrefix, options)
253+
return
254+
}
253255

254-
if (typeof options === 'string') return this.setGroupPrefix(options)
256+
if (typeof options === 'string') {
257+
this.setGroupPrefix(options)
258+
return
259+
}
255260

256-
return this.setGroupPrefix('', options)
261+
this.setGroupPrefix('', options)
262+
return
257263
}
258264

259265
private async resolveCallback(

0 commit comments

Comments
 (0)