Fix simplifiable-if-expression pylint errors
This commit is contained in:
parent
47dae61e21
commit
b09f94dabd
|
@ -836,7 +836,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
|||
history = self.received_history
|
||||
pos = self.received_history_pos
|
||||
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
|
||||
max_size = app.config.get('key_up_lines')
|
||||
for _i in range(size - max_size + 1):
|
||||
|
|
Loading…
Reference in New Issue