Skip to content

Commit

Permalink
Simplify isTransparentCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
josephcsible committed Dec 31, 2023
1 parent b7f88ec commit 9e0fdbe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ShellCheck/Analytics.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e0fdbe

Please sign in to comment.