Skip to content

Commit

Permalink
Replace unnecessary comprehension with a generator (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibFrgsGmz committed Jun 6, 2022
1 parent d5c5a39 commit 2aa21a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fprime/common/models/serialize/array_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ def deserialize(self, data, offset):

def getSize(self):
"""Return the size of the array"""
return sum([item.getSize() for item in self._val])
return sum(item.getSize() for item in self._val)

0 comments on commit 2aa21a1

Please sign in to comment.