Skip to content

Commit

Permalink
Issue #26: resolve a merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Dimjašević committed Nov 26, 2019
2 parents d19fb0a + cb8afc7 commit 56519c2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/Fencer/Rules.hs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,14 @@ validatePotentialDomains res = case partitionEithers res of
(NE.fromList $ sortOn domainDefinitionId domains)
if (length @[] domains /= length @[] groupedDomains)
then
let dupDomain = NE.head . head $ filter (\l -> NE.length l > 1) groupedDomains
in Left . pure . LoadRulesDuplicateDomain . domainDefinitionId $ dupDomain
let dupDomain =
NE.head . head $ filter (\l -> NE.length l > 1) groupedDomains
in
Left .
pure .
LoadRulesDuplicateDomain .
domainDefinitionId $
dupDomain
else Right domains
-- check if there are any duplicate rules
traverse_ (dupRuleCheck . (\dom -> (domainDefinitionId dom, dom))) domains
Expand Down

0 comments on commit 56519c2

Please sign in to comment.