From 0454e3e2f1a396119f3c64dda3007d9459a83e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 1 Nov 2020 08:53:08 +0100 Subject: [PATCH] Gmail.py swap if block I swapped this if - else block, with the "is not". Code now is clear. --- offlineimap/repository/Gmail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offlineimap/repository/Gmail.py b/offlineimap/repository/Gmail.py index ed9b2d4..b04a92f 100644 --- a/offlineimap/repository/Gmail.py +++ b/offlineimap/repository/Gmail.py @@ -71,10 +71,10 @@ class GmailRepository(IMAPRepository): port = super(GmailRepository, self).getport() - if port is None: - return 993 + if port is not None: + return port - return port + return 993 def getssl(self): ssl = self.getconfboolean('ssl', None)