Skip to content

Commit 7b7ea4d

Browse files
committed
remove double return
1 parent e247ae1 commit 7b7ea4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ modifyFileExists :: IdeState -> [(NormalizedFilePath, FileChangeType)] -> IO [Ke
111111
modifyFileExists state changes = do
112112
FileExistsMapVar var <- getIdeGlobalState state
113113
-- Masked to ensure that the previous values are flushed together with the map update
114-
keys <- join $ mask_ $ atomicallyNamed "modifyFileExists" $ do
114+
keys <- mask_ $ atomicallyNamed "modifyFileExists" $ do
115115
forM_ changes $ \(f,c) ->
116116
case fromChange c of
117117
Just c' -> STM.focus (Focus.insert c') f var
@@ -123,7 +123,7 @@ modifyFileExists state changes = do
123123
mapM_ (deleteValue (shakeExtras state) GetFileExists . fst) fileExistChanges
124124
let keys1 = map (toKey GetFileExists . fst) fileExistChanges
125125
let keys2 = map (toKey GetModificationTime . fst) fileModifChanges
126-
return $ return (keys1 <> keys2)
126+
return (keys1 <> keys2)
127127
return keys
128128

129129
fromChange :: FileChangeType -> Maybe Bool

0 commit comments

Comments
 (0)