]> gitweb.michael.orlitzky.com - dead/halcyon.git/blobdiff - src/OptionalConfiguration.hs
Fix hlint suggestion.
[dead/halcyon.git] / src / OptionalConfiguration.hs
index 3018e9ecdae56bc913b319a843804b0ef2f810b8..600647f7fa37fafff795d9dfee1721cb0ca43d9c 100644 (file)
@@ -79,9 +79,10 @@ instance Monoid OptionalCfg where
       merge (Just _) (Just y) = Just y
 
       -- Use only the latter usernames if there are any.
-      all_usernames = if (null (usernames cfg2))
-                      then (usernames cfg1)
-                      else (usernames cfg2)
+      all_usernames =
+        usernames $ if (null (usernames cfg2))
+                    then cfg1
+                    else cfg2
 
 instance DCT.Configured [String] where
   convert (DCT.List xs) =