diff --git a/src/ShellCheck/Analytics.hs b/src/ShellCheck/Analytics.hs index 794c3f5..a082753 100644 --- a/src/ShellCheck/Analytics.hs +++ b/src/ShellCheck/Analytics.hs @@ -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