Skip to content

Commit a136733

Browse files
committed
fix (unneeded not): simplified if statement for checking list content
1 parent a362c84 commit a136733

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/DIRAC/TransformationSystem/Client/Transformation.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -564,15 +564,13 @@ def getSummaryTransformations(self, transID=[]):
564564
except Exception as x:
565565
print("Exception %s " % str(x))
566566

567-
if not len(dictList) > 0:
567+
if not dictList:
568568
gLogger.error("No found transformations satisfying input condition")
569569
return S_ERROR("No found transformations satisfying input condition")
570-
else:
571-
print(
572-
self._printFormattedDictList(
573-
dictList, paramShowNamesShort, paramShowNamesShort[0], paramShowNamesShort[0]
574-
)
575-
)
570+
571+
print(
572+
self._printFormattedDictList(dictList, paramShowNamesShort, paramShowNamesShort[0], paramShowNamesShort[0])
573+
)
576574

577575
return S_OK(dictList)
578576

0 commit comments

Comments
 (0)