Commits

Luke Plant committed 7fcdb52

Simplify expression.

Comments (0)

Files changed (1)

src/Blog/Forms.hs

                   , (length name > Settings.max_comment_name_size,
                      ("name", "Name too long"))
                   ]
-      let errors = [ err | (test, err) <- tests, test ]
+      let errors = map snd $ filter fst $ tests
 
       return (Cm.Comment {
                       uid = undefined