Skip to content

Commit c23139d

Browse files
committed
Fix pedantic build
1 parent 34f2307 commit c23139d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ghcide/src/Development/IDE/Core/Actions.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import Control.Concurrent.MVar (MVar, newEmptyMVar,
1414
putMVar, readMVar)
1515
import Control.Concurrent.STM (atomically)
1616
import Control.Concurrent.STM.TQueue (unGetTQueue)
17-
import Control.Monad (unless)
1817
import Control.Monad.Extra (mapMaybeM)
1918
import Control.Monad.Reader
2019
import Control.Monad.Trans.Maybe
@@ -89,7 +88,7 @@ lookupMod HieDbWriter{indexQueue} hieFile moduleName uid _boot = MaybeT $ do
8988
writeAndIndexSource projectRoot completionToken = do
9089
fileExists <- liftIO $ doesFileExist writeOutPath
9190
-- No need to write out the file if it already exists.
92-
unless fileExists $ do
91+
if fileExists then pure () else do
9392
nc <- asks ideNc
9493
liftIO $ do
9594
-- Create the directory where we will put the source.

0 commit comments

Comments
 (0)