forked from qt-creator/qt-creator
Squish: Cleaned for-loops
Change-Id: Ide5313c8838aa7ad9ad74cbaed12872ce0a35413 Reviewed-by: Bill King <bill.king@nokia.com> Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
committed by
Robert Löhning
parent
e48e185d2d
commit
0e0158fc3f
@@ -56,9 +56,7 @@ class QtQuickConstants:
|
||||
if not isinstance(targets, (tuple,list)):
|
||||
test.fatal("Wrong usage... This function handles only tuples or lists.")
|
||||
return None
|
||||
result = []
|
||||
for target in targets:
|
||||
result.append(QtQuickConstants.getStringForTarget(target))
|
||||
result = map(QtQuickConstants.getStringForTarget, targets)
|
||||
if None in result:
|
||||
test.fatal("You've passed at least one unknown target!")
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user