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()
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user