Remove unnecessary fromMaybes

This commit is contained in:
Joseph C. Sible 2020-02-09 21:50:40 -05:00
parent 8e9290badb
commit a223a7a5a5
2 changed files with 3 additions and 4 deletions

View file

@ -454,7 +454,7 @@ leadType params t =
T_BatsTest {} -> SubshellScope "@bats test"
T_CoProcBody _ _ -> SubshellScope "coproc"
T_Redirecting {} ->
if fromMaybe False causesSubshell
if causesSubshell == Just True
then SubshellScope "pipeline"
else NoneScope
_ -> NoneScope