Skip to content

Commit 09fe2dd

Browse files
committed
assertion
1 parent 3691e83 commit 09fe2dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ defineEarlyCutoff' doDiagnostics key file old mode action = do
993993
updateFileDiagnostics file (Key key) extras $ map (\(_,y,z) -> (y,z)) $ Vector.toList diags
994994
return $ Just $ RunResult ChangedNothing old $ A v
995995
_ -> return Nothing
996-
_ -> return Nothing
996+
_ -> assert (mode /= RunDependenciesSame) $ return Nothing
997997
res <- case val of
998998
Just res -> return res
999999
Nothing -> do

0 commit comments

Comments
 (0)