]> gitweb.michael.orlitzky.com - haeredes.git/blobdiff - src/Main.hs
Fix hlint warnings.
[haeredes.git] / src / Main.hs
index 0c215b758a59501b6d4c8bd049a5dd4cab53e9ee..4da383352360ee4a37a552805a5da88897c27c4f 100644 (file)
@@ -4,6 +4,7 @@ where
 import Control.Concurrent.ParallelIO.Global (
   parallel,
   stopGlobalPool )
+import Control.Monad (unless)
 import qualified Data.ByteString.Char8 as BS (
   getContents,
   pack,
@@ -30,12 +31,11 @@ report :: (Domain, Maybe [Domain]) -> IO ()
 report (d, Nothing) =
   putStrLn $ "Domain " ++ (show d) ++ " not delegated."
 report (d, Just leftovers) =
-  if null leftovers
-  then return ()
-  else putStrLn $ "Domain " ++
-                  (show d) ++
-                  " delegates somewhere else: " ++
-                  (join " " (map show leftovers))
+  unless (null leftovers) $
+    putStrLn $ "Domain " ++
+               (show d) ++
+               " delegates somewhere else: " ++
+               (join " " (map show leftovers))
 
 clean :: [Domain] -- ^ List of delegates, @ds@
       -> LookupResult