Fix simplifiable-if-expression pylint errors

This commit is contained in:
Philipp Hörist 2019-04-07 18:22:45 +02:00
parent 47dae61e21
commit b09f94dabd
1 changed files with 1 additions and 1 deletions

View File

@ -836,7 +836,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
history = self.received_history history = self.received_history
pos = self.received_history_pos pos = self.received_history_pos
size = len(history) size = len(history)
scroll = False if pos == size else True # are we scrolling? scroll = pos != size
# we don't want size of the buffer to grow indefinitely # we don't want size of the buffer to grow indefinitely
max_size = app.config.get('key_up_lines') max_size = app.config.get('key_up_lines')
for _i in range(size - max_size + 1): for _i in range(size - max_size + 1):