commit:     a6f90ba17202518ab0c976a32cb216a8e719f8fa
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 15 23:55:50 2020 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat Aug 15 23:56:01 2020 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=a6f90ba1

repoman/lib/repoman/scanner.py: Fix useless-return

Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 repoman/lib/repoman/scanner.py | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/repoman/lib/repoman/scanner.py b/repoman/lib/repoman/scanner.py
index f9df73d83..f9663e013 100644
--- a/repoman/lib/repoman/scanner.py
+++ b/repoman/lib/repoman/scanner.py
@@ -365,7 +365,6 @@ class Scanner:
                        dynamic_data["changelog_modified"] = changelog_path in 
self.changed.changelogs
 
                        self._scan_ebuilds(ebuildlist, dynamic_data)
-               return
 
 
        def _scan_ebuilds(self, ebuildlist, dynamic_data):
@@ -408,7 +407,6 @@ class Scanner:
                # Final checks
                # initialize per pkg plugin final checks here
                # need to set it up for ==> self.modules_list or some other 
ordered list
-               xpkg_complete = False
                for mod in self.moduleconfig.final_loop:
                        if mod:
                                mod_class = 
self.moduleconfig.controller.get_class(mod)
@@ -423,10 +421,5 @@ class Scanner:
                                        logging.debug("\tRunning function: %s", 
func)
                                        _continue = 
func(**self.set_func_kwargs(mod, dynamic_data))
                                        if _continue:
-                                               xpkg_complete = True
                                                # logging.debug("\t>>> 
Continuing")
                                                break
-
-               if xpkg_complete:
-                       return
-               return

Reply via email to