Skip to content

Commit

Permalink
Can be one line
Browse files Browse the repository at this point in the history
  • Loading branch information
The1Penguin committed Jun 5, 2024
1 parent c6b5379 commit 9ab75d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ update = do
dateNow <- liftIO $ fmap (view _zonedTimeToLocalTime) getZonedTime
let (textday, d) =
if dateNow ^. _localTimeOfDay . _todHour >= nextDayHour
then
("Tomorrow", dateNow & _localDay %~ (.+^ 1))
then ("Tomorrow", dateNow & _localDay %~ (.+^ 1))
else ("Today", dateNow)
let day' = d ^. _localDay
let karenR = fetchAndCreateRestaurant day'
Expand Down

0 comments on commit 9ab75d8

Please sign in to comment.