aboutsummaryrefslogtreecommitdiff
path: root/src/util.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.ts')
-rw-r--r--src/util.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util.ts b/src/util.ts
index 0b60bb1..136815e 100644
--- a/src/util.ts
+++ b/src/util.ts
@@ -1,4 +1,4 @@
-
-export const match = <K extends string, R>(k: K | undefined, pattern: { [key in K | '_']: () => R }) =>
- k && pattern[k] ? pattern[k]() : pattern._()
-
+export const match = <K extends string, R>(
+ k: K | undefined,
+ pattern: { [key in K | '_']: () => R }
+) => (k && pattern[k] ? pattern[k]() : pattern._())