Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodvp committed Jul 29, 2024
1 parent 50e0443 commit 9f2b551
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cabal-install/src/Distribution/Client/ProjectConfig.hs
Original file line number Diff line number Diff line change
Expand Up @@ -542,13 +542,13 @@ getProjectRootUsability filePath = do
if exists
then return ProjectRootUsabilityPresentAndUsable
else do
let isUsableAciton =
let isUsableAction =
handle @IOException
-- NOTE: if any IOException is raised, we assume the file does not exist.
-- That is what happen when we call @pathIsSymbolicLink@ on an @FilePath@ that does not exist.
-- That is what happen when we call @pathIsSymbolicLink@ on a @FilePath@ that does not exist.
(const $ pure False)
((||) <$> pathIsSymbolicLink filePath <*> doesPathExist filePath)
isUnusable <- isUsableAciton
isUnusable <- isUsableAction
if isUnusable
then return ProjectRootUsabilityPresentAndUnusable
else return ProjectRootUsabilityNotPresent
Expand Down

0 comments on commit 9f2b551

Please sign in to comment.