docker-offlineimap/offlineimap/repository
Rodolfo García Peñas (kix) b175f7a698 Base.py sync_folder_structure returns always None
The function sync_folder_structure is only used in the accounts.py file:

kix@inle:~/src/offlineimap3/offlineimap$ rgrep sync_folder_structure *
accounts.py:            remoterepos.sync_folder_structure(localrepos, statusrepos)
repository/Base.py:    def sync_folder_structure(self, local_repo, status_repo):
kix@inle:~/src/offlineimap3/offlineimap$

The returned value is not used. We have this warning:

R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)

Because is not returning anything here, but is returning None at the function end.
We can include this None here safely.
2020-11-01 10:00:02 +01:00
..
__init__.py repository add docstring to files 2020-11-01 08:43:16 +01:00
Base.py Base.py sync_folder_structure returns always None 2020-11-01 10:00:02 +01:00
Gmail.py Gmail.py removed parent class in super calls 2020-11-01 09:02:09 +01:00
GmailMaildir.py GmailMaildir.py Removed __init__ 2020-11-01 09:13:17 +01:00
IMAP.py repository add docstring to files 2020-11-01 08:43:16 +01:00
LocalStatus.py repository add docstring to files 2020-11-01 08:43:16 +01:00
Maildir.py Maildir.py split long lines 2020-11-01 09:29:31 +01:00