Skip to content

Commit eafda04

Browse files
wz1000pepeiborra
andcommitted
Update hls-graph/src/Development/IDE/Graph/Internal/Types.hs
Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
1 parent e99772d commit eafda04

File tree

1 file changed

+1
-1
lines changed
  • hls-graph/src/Development/IDE/Graph/Internal

1 file changed

+1
-1
lines changed

hls-graph/src/Development/IDE/Graph/Internal/Types.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ newKey k = unsafePerformIO $ do
114114
lookupKeyValue :: Key -> KeyValue
115115
lookupKeyValue (UnsafeMkKey x) = unsafePerformIO $ do
116116
KeyMap _ im _ <- readIORef keyMap
117-
pure $! fromJust (IM.lookup x im)
117+
pure $! im IM.! x
118118

119119
{-# NOINLINE lookupKeyValue #-}
120120

0 commit comments

Comments
 (0)