Gmail.py swap if block

I swapped this if - else block, with the "is not". Code now is clear.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-11-01 08:53:08 +01:00
parent 4198fa8201
commit 0454e3e2f1

View File

@ -71,10 +71,10 @@ class GmailRepository(IMAPRepository):
port = super(GmailRepository, self).getport() port = super(GmailRepository, self).getport()
if port is None: if port is not None:
return 993 return port
return port return 993
def getssl(self): def getssl(self):
ssl = self.getconfboolean('ssl', None) ssl = self.getconfboolean('ssl', None)