]> gitweb.factorcode.org Git - factor.git/commitdiff
crontab: cleanup empty lines differently.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 16 Mar 2019 23:48:41 +0000 (16:48 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 16 Mar 2019 23:48:41 +0000 (16:48 -0700)
extra/crontab/crontab.factor

index c214cec8fb0e13a95029a00ac0aab451a96107cf..f9c010b22ee7d5a047e3ce9cfa6c77e2bee4b44d 100644 (file)
@@ -101,4 +101,4 @@ CONSTANT: aliases H{
     now 0 >>second [ next-time-after ] keep ;
 
 : parse-crontab ( -- entries )
-    lines [ [ f ] [ parse-cronentry ] if-empty ] map harvest ;
+    lines harvest [ parse-cronentry ] map ;