mirror of
https://github.com/github/semantic.git
synced 2025-01-01 11:46:14 +03:00
🔥 a redundant raiseEff.
This commit is contained in:
parent
863c2774eb
commit
98320e4e15
@ -104,7 +104,7 @@ runFunction = interpret $ \case
|
|||||||
withCurrentPackage packageInfo . withCurrentModule moduleInfo $ do
|
withCurrentPackage packageInfo . withCurrentModule moduleInfo $ do
|
||||||
bindings <- foldr (\ (name, addr) rest -> Env.insert name addr <$> rest) (pure lowerBound) (zip names params)
|
bindings <- foldr (\ (name, addr) rest -> Env.insert name addr <$> rest) (pure lowerBound) (zip names params)
|
||||||
let fnEnv = Env.push env
|
let fnEnv = Env.push env
|
||||||
withEnv fnEnv (catchReturn (bindAll bindings *> raiseEff (coerce body)))
|
withEnv fnEnv (catchReturn (bindAll bindings *> coerce body))
|
||||||
_ -> throwValueError (CallError op) >>= box
|
_ -> throwValueError (CallError op) >>= box
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user