Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
```
fourmolu  -i cabal-install/src/Distribution/Client/ProjectConfig.hs
```
  • Loading branch information
peterbecich committed Mar 4, 2024
1 parent f544f48 commit 7e1da4d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions cabal-install/src/Distribution/Client/ProjectConfig.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1374,16 +1374,17 @@ syncAndReadSourcePackagesRemoteRepos
-- For syncing we don't care about different 'SourceRepo' values that
-- are just different subdirs in the same repo.
-- Do not sync source repositories when `--offline` flag applied.
if not offlineMode then
syncSourceRepos
verbosity
vcs
[ (repo, repoPath)
| (repo, _, repoPath) <- repoGroupWithPaths
]
else do
liftIO . warn verbosity $ "--offline was specified, skipping sync of repositories:"
liftIO . for_ repoGroupWithPaths $ \(repo,_,_) -> warn verbosity $ srpLocation repo
if not offlineMode
then
syncSourceRepos
verbosity
vcs
[ (repo, repoPath)
| (repo, _, repoPath) <- repoGroupWithPaths
]
else do
liftIO . warn verbosity $ "--offline was specified, skipping sync of repositories:"
liftIO . for_ repoGroupWithPaths $ \(repo, _, _) -> warn verbosity $ srpLocation repo

-- Run post-checkout-command if it is specified
for_ repoGroupWithPaths $ \(repo, _, repoPath) ->
Expand Down

0 comments on commit 7e1da4d

Please sign in to comment.