mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 21:53:29 +08:00
Simplify isTransparentCommand
This commit is contained in:
@@ -4847,9 +4847,7 @@ checkExtraMaskedReturns params t =
|
|||||||
,"shopt"
|
,"shopt"
|
||||||
]
|
]
|
||||||
|
|
||||||
isTransparentCommand t = fromMaybe False $ do
|
isTransparentCommand t = getCommandBasename t == Just "time"
|
||||||
basename <- getCommandBasename t
|
|
||||||
return $ basename == "time"
|
|
||||||
|
|
||||||
|
|
||||||
-- hard error on negated command that is not last
|
-- hard error on negated command that is not last
|
||||||
|
Reference in New Issue
Block a user