Skip to content

Commit

Permalink
[#1178] Simplify "if" expression, removing redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbaptista committed Oct 12, 2013
1 parent c2e4f76 commit dfd8ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/controllers/group.py
Expand Up @@ -614,7 +614,7 @@ def member_new(self, id):
data_dict['id'] = id

email = data_dict.get('email')
if email and email != '':
if email:
user_data_dict = {
'email': email,
'group_id': data_dict['id'],
Expand Down

0 comments on commit dfd8ae9

Please sign in to comment.