Skip to content

Commit

Permalink
Please pylint.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed May 24, 2022
1 parent a993bdb commit 9c006d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pymodbus/framer/rtu_framer.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ def isFrameReady(self):
:returns: True if ready, False otherwise
"""

size = self._header.get('len', 0)
if size == 0 and len(self._buffer) > self._hsize:
if (size := self._header.get('len', 0)) == 0 and len(self._buffer) > self._hsize:
try:
size = self.populateHeader()
except IndexError:
Expand Down

0 comments on commit 9c006d1

Please sign in to comment.