Skip to content

Commit

Permalink
[processing] Fields mapper code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 26, 2017
1 parent b527be0 commit f6479c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/qgis/FieldsMapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ def checkValueIsAcceptable(self, value, context=None):
for field_def in value:
if not isinstance(field_def, dict):
return False
if not field_def.get('name', False):
if 'name' not in field_def.keys():
return False
if field_def.get('type', None) is None:
if 'type' not in field_def.keys():
return False
if not field_def.get('expression', False):
if 'expression' not in field_def.keys():
return False
return True

Expand Down

0 comments on commit f6479c1

Please sign in to comment.