mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 21:41:34 -07:00
Remove unnecessary fromMaybes
This commit is contained in:
parent
8e9290badb
commit
a223a7a5a5
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue