From 8f0448133ca7437f704e584c018519e2ac3b033c Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Sun, 9 Feb 2020 22:14:44 -0500 Subject: [PATCH] Use isNothing instead of reimplementing it --- src/ShellCheck/Analytics.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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