Gmail.py swap if block
I swapped this if - else block, with the "is not". Code now is clear.
This commit is contained in:
parent
4198fa8201
commit
0454e3e2f1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user