mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 11:14:25 +08:00
Use isNothing instead of reimplementing it
This commit is contained in:
@@ -3250,9 +3250,8 @@ checkPipeToNowhere _ t =
|
||||
"Redirecting to '" ++ name ++ "', a command that doesn't read stdin. " ++ suggestion
|
||||
|
||||
-- Could any words in a SimpleCommand consume stdin (e.g. echo "$(cat)")?
|
||||
hasAdditionalConsumers t = fromMaybe True $ do
|
||||
hasAdditionalConsumers t = isNothing $
|
||||
doAnalysis (guard . not . mayConsume) t
|
||||
return False
|
||||
|
||||
mayConsume t =
|
||||
case t of
|
||||
|
Reference in New Issue
Block a user