From 75e3bb69a3fec4be8850833da5cd11bbabcd99b7 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 22 Nov 2015 02:09:36 +0100 Subject: Minor style modification --- src/Main.hs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/Main.hs') diff --git a/src/Main.hs b/src/Main.hs index b2b0408..2cd4c28 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -18,9 +18,6 @@ main = do eitherBirthdates <- parseBirthdates <$> T.readFile Path.birthdate eitherConfig <- getConfig Path.config case (eitherBirthdates, eitherConfig) of - (Left err, _) -> - RenderError.birthdate err - (_, Left err) -> - RenderError.config err - (Right birthdates, Right config) -> do - Notification.todayAndNextWeek birthdates config + (Left err, _) -> RenderError.birthdate err + (_, Left err) -> RenderError.config err + (Right birthdates, Right config) -> notifyTodayAndNextWeek birthdates config -- cgit v1.2.3