Skip to content

Commit

Permalink
Minor simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
enobayram committed Jan 30, 2024
1 parent 78138b1 commit e63d336
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions haskell-src/exec/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ runMigrations pool logg migAction migrations = do
baseFiles <- case migrationsFolderBase migrations of
Just migFolder -> getDir migFolder
Nothing -> return baseMigrationFiles
extraFiles <- flip foldMap (migrationsFolderExtra migrations) $
\migFolder -> getDir migFolder
extraFiles <- foldMap getDir $ migrationsFolderExtra migrations
let migrationFiles = baseFiles ++ extraFiles

let steps = map (uncurry Mg.MigrationStep) migrationFiles
Expand Down

0 comments on commit e63d336

Please sign in to comment.