mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-31 03:50:49 -07:00
Simplify isTransparentCommand
This commit is contained in:
parent
b7f88ec4b7
commit
9e0fdbe431
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue