File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,8 @@ const VueAcl: VueAcl = {
8888
8989 /* convert 'edit Post' to ['edit', 'Post'] */
9090 const aclTuple = ( value : string ) : [ string , string | null ] => {
91- const [
92- verb ,
93- verbObject = opt . assumeGlobal ? Acl . GlobalRule : null ,
94- ] = value . split ( ' ' )
91+ const [ verb , verbObject = opt . assumeGlobal ? Acl . GlobalRule : null ] =
92+ value . split ( ' ' )
9593 return [ verb , verbObject ]
9694 }
9795
@@ -327,14 +325,14 @@ function commentNode(el: HTMLElement, vnode: VNode) {
327325/**
328326 * Return the first property from meta that is 'can' or one of its aliases.
329327 */
330- const findCanWithOptions = ( opt : Options ) => (
331- meta : VueRouterMeta ,
332- ) : string | Function => {
333- return ( [ opt . directive , ...( opt . aliases || [ ] ) ] as string [ ] )
334- . map ( ( key : string ) => meta [ key ] )
335- . filter ( Boolean )
336- . shift ( )
337- }
328+ const findCanWithOptions =
329+ ( opt : Options ) =>
330+ ( meta : VueRouterMeta ) : string | Function => {
331+ return ( [ opt . directive , ...( opt . aliases || [ ] ) ] as string [ ] )
332+ . map ( ( key : string ) => meta [ key ] )
333+ . filter ( Boolean )
334+ . shift ( )
335+ }
338336
339337/**
340338 * Maps binding.value of type array to expression tuple
You can’t perform that action at this time.
0 commit comments