From b09f94dabda45264116cb3a37f9aa1c41f0ac061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 7 Apr 2019 18:22:45 +0200 Subject: [PATCH] Fix simplifiable-if-expression pylint errors --- gajim/chat_control_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/chat_control_base.py b/gajim/chat_control_base.py index eac97e312..0453f433a 100644 --- a/gajim/chat_control_base.py +++ b/gajim/chat_control_base.py @@ -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):