mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
We can use fromMaybe now.
This commit is contained in:
parent
152ba7f549
commit
36dabb27e6
@ -68,7 +68,7 @@ include pathTerm f = do
|
||||
name <- subtermValue pathTerm >>= asString
|
||||
path <- resolvePHPName name
|
||||
traceResolve name path
|
||||
(importedEnv, v) <- isolate (f path) >>= maybeM (pure (emptyEnv, unit))
|
||||
(importedEnv, v) <- fromMaybe (emptyEnv, unit) <$> isolate (f path)
|
||||
bindAll importedEnv
|
||||
pure (Rval v)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user