From 75ec4078900f05636234591efc9a78e2df1549f4 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Wed, 31 Oct 2018 14:02:11 -0700 Subject: [PATCH] simplify --- pollen/private/split-metas.rkt | 12 +++++------- pollen/private/ts.rktd | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/pollen/private/split-metas.rkt b/pollen/private/split-metas.rkt index 973d104..7b051b3 100644 --- a/pollen/private/split-metas.rkt +++ b/pollen/private/split-metas.rkt @@ -7,13 +7,11 @@ (apply hasheq (let loop ([x ((if (syntax? x) syntax->datum values) x)]) (match x - [(? list? xs) - (match xs - [(list (== meta-key eq?) key val) - (unless (symbol? key) - (raise-argument-error 'define-meta "valid meta key" key)) - (list key val)] - [_ (append-map loop xs)])] + [(list (== meta-key eq?) key val) + (unless (symbol? key) + (raise-argument-error 'define-meta "valid meta key" key)) + (list key val)] + [(? list? xs) (append-map loop xs)] [_ null])))) (module+ test diff --git a/pollen/private/ts.rktd b/pollen/private/ts.rktd index 745b9ef..0e7517a 100644 --- a/pollen/private/ts.rktd +++ b/pollen/private/ts.rktd @@ -1 +1 @@ -1540962551 +1541019731