]> gitweb.michael.orlitzky.com - dead/halcyon.git/commitdiff
Fix hlint suggestion.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 15 Jul 2013 02:02:41 +0000 (22:02 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 15 Jul 2013 02:02:41 +0000 (22:02 -0400)
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) =