Muse reader: fix compiler warning

lambda variable `st` shadowed an existing variable.
This commit is contained in:
Jesse Rosenthal 2018-02-20 09:17:52 -05:00
parent b9b66d3b29
commit 705145956d

View file

@ -912,7 +912,7 @@ link = try $ do
guard $ not $ museInLink st
setState $ st{ museInLink = True }
(url, title, content) <- linkText
updateState (\st -> st { museInLink = False })
updateState (\state -> state { museInLink = False })
return $ case stripPrefix "URL:" url of
Nothing -> if isImageUrl url
then B.image url title <$> fromMaybe (return mempty) content