Skip to content

Commit

Permalink
removed unused variable (#645)
Browse files Browse the repository at this point in the history
removed unused variable `data_length`

Co-authored-by: dhoomakethu <[email protected]>
  • Loading branch information
erfan-khadem and dhoomakethu authored Aug 1, 2021
1 parent 8eaf3ac commit c8125c8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pymodbus/client/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ def _check_read_buffer(self, recv_size=None):
time_ = time.time()
end = time_ + self.timeout
data = None
data_length = 0
ready = select.select([self.socket], [], [], end - time_)
if ready[0]:
data = self.socket.recv(1024)
Expand Down

0 comments on commit c8125c8

Please sign in to comment.