Skip to content

Commit

Permalink
pre-cleanup cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
harryprayiv committed Mar 13, 2024
1 parent 81c0398 commit 5eb8b2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/League/Scraper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{-# HLINT ignore "Redundant id" #-}
{-# OPTIONS_GHC -Wno-deferred-out-of-scope-variables #-}
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
{-# HLINT ignore "Use tuple-section" #-}

module Scraper (
scrapeStatsForDateRange,
Expand Down Expand Up @@ -242,7 +243,7 @@ convertGameDataMapToJsonPlayerData maybeGameDataMap =
foldl mergePlayerData M.empty allPlayerDataPairs
where
allPlayerDataPairs :: [(Text, MI.JsonPlayerData)]
allPlayerDataPairs = concatMap gameDataToPlayerDataPairs (mapMaybe id (M.elems maybeGameDataMap))
allPlayerDataPairs = concatMap gameDataToPlayerDataPairs (catMaybes (M.elems maybeGameDataMap))

gameDataToPlayerDataPairs :: I.GameData -> [(Text, MI.JsonPlayerData)]
gameDataToPlayerDataPairs gameData =
Expand Down

0 comments on commit 5eb8b2d

Please sign in to comment.