File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
storage/framework/core/router/src Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -248,12 +248,18 @@ export class Router implements RouterInterface {
248
248
}
249
249
250
250
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
+ }
253
255
254
- if ( typeof options === 'string' ) return this . setGroupPrefix ( options )
256
+ if ( typeof options === 'string' ) {
257
+ this . setGroupPrefix ( options )
258
+ return
259
+ }
255
260
256
- return this . setGroupPrefix ( '' , options )
261
+ this . setGroupPrefix ( '' , options )
262
+ return
257
263
}
258
264
259
265
private async resolveCallback (
You can’t perform that action at this time.
0 commit comments