Skip to content

Commit 1b742fd

Browse files
committed
style: format with prettier
1 parent d2dfaf0 commit 1b742fd

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/index.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)