Simplify isTransparentCommand
This commit is contained in:
parent
b7f88ec4b7
commit
9e0fdbe431
|
@ -4847,9 +4847,7 @@ checkExtraMaskedReturns params t =
|
|||
,"shopt"
|
||||
]
|
||||
|
||||
isTransparentCommand t = fromMaybe False $ do
|
||||
basename <- getCommandBasename t
|
||||
return $ basename == "time"
|
||||
isTransparentCommand t = getCommandBasename t == Just "time"
|
||||
|
||||
|
||||
-- hard error on negated command that is not last
|
||||
|
|
Loading…
Reference in New Issue