From 041242f735a20027acfef10764398c208dc94183 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 1 Oct 2012 15:17:21 -0400 Subject: simplify --- Command/Group.hs | 3 +-- Command/Ungroup.hs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'Command') diff --git a/Command/Group.hs b/Command/Group.hs index 2952f2142..5513ca3f7 100644 --- a/Command/Group.hs +++ b/Command/Group.hs @@ -30,6 +30,5 @@ start _ = error "Specify a repository and a group." perform :: UUID -> Group -> CommandPerform perform uuid g = do - s <- lookupGroups uuid - groupSet uuid (S.insert g s) + groupChange uuid (S.insert g) next $ return True diff --git a/Command/Ungroup.hs b/Command/Ungroup.hs index 2161cec91..ea5b8edb6 100644 --- a/Command/Ungroup.hs +++ b/Command/Ungroup.hs @@ -30,6 +30,5 @@ start _ = error "Specify a repository and a group." perform :: UUID -> Group -> CommandPerform perform uuid g = do - s <- lookupGroups uuid - groupSet uuid (S.delete g s) + groupChange uuid (S.delete g) next $ return True -- cgit v1.2.3