Cleanup code
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Mon, 3 Dec 2007 08:18:03 +0000 (03:18 -0500)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Mon, 3 Dec 2007 08:18:03 +0000 (03:18 -0500)
pylib/csc/adm/members.py

index 8a25c05..0c1821f 100644 (file)
@@ -211,15 +211,13 @@ def list_group(group):
     """
 
     members = group_members(group)
+    ret = {}
     if members:
-        ret = {}
         for member in members:
             info = get(member)
             if info:
                 ret[member] = info
-        return ret
-    else:
-        return {}
+    return ret
 
 
 def list_positions():