aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs9
1 files changed, 3 insertions, 6 deletions
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