Skip to contentSkip to conversation

insane: Remove redundant returns

PATCH New [email protected] 1 participant 1 message Aug 30, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 insane: Remove redundant returns

From: Ola x Nilsson <[email protected]>

Some redundant return statements were left over from
insane: Drop oe.qa.add_message usage

---
 meta/classes-global/insane.bbclass | 3 ---
 1 file changed, 3 deletions(-)
meta/classes-global/insane.bbclass +0 -3
index 32adcc722b..d7aba89b49 100644
@@ -113,7 +113,6 @@ def package_qa_check_libexec(path,name, d, elf):
 
     if 'libexec' in path.split(os.path.sep):
         oe.qa.handle_error("libexec", "%s: %s is using libexec please relocate to %s" % (name, package_qa_clean_path(path, d, name), libexec), d)
-        return
 
 QAPATHTEST[rpaths] = "package_qa_check_rpath"
 def package_qa_check_rpath(file,name, d, elf):
@@ -932,7 +931,6 @@ def package_qa_check_deps(pkg, pkgdest, d):
 
 QAPKGTEST[usrmerge] = "package_qa_check_usrmerge"
 def package_qa_check_usrmerge(pkg, d):
-
     pkgdest = d.getVar('PKGDEST')
     pkg_dir = pkgdest + os.sep + pkg + os.sep
     merged_dirs = ['bin', 'sbin', 'lib'] + d.getVar('MULTILIB_VARIANTS').split()
@@ -941,7 +939,6 @@ def package_qa_check_usrmerge(pkg, d):
             msg = "%s package is not obeying usrmerge distro feature. /%s should be relocated to /usr." % (pkg, f)
             oe.qa.handle_error("usrmerge", msg, d)
             return
-    return
 
 QAPKGTEST[perllocalpod] = "package_qa_check_perllocalpod"
 def package_qa_check_perllocalpod(pkg, d):
Signature · 1 line
2.39.2