aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-05-16 20:17:19 -0400
committerEli Schwartz <eschwartz93@gmail.com>2024-05-19 15:49:45 -0400
commitaa9b7b9445ad5bf0948cadac86109ba40e193424 (patch)
tree58ee0df801082f2b2c9ded00fcec9d78cad6cf9a /mesonbuild
parent125d3344ec3361b2fb6d35c6c75c3f6d4f500556 (diff)
downloadmeson-aa9b7b9445ad5bf0948cadac86109ba40e193424.zip
meson-aa9b7b9445ad5bf0948cadac86109ba40e193424.tar.gz
meson-aa9b7b9445ad5bf0948cadac86109ba40e193424.tar.bz2
pylint: fix useless-return
A bare return at the end of a function doesn't do anything. And in the case of a try/except, it's really just an elaborate "pass" anyway.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/ast/introspection.py2
-rw-r--r--mesonbuild/dependencies/misc.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py
index 5bf7e05..fa11feb 100644
--- a/mesonbuild/ast/introspection.py
+++ b/mesonbuild/ast/introspection.py
@@ -145,7 +145,7 @@ class IntrospectionInterpreter(AstInterpreter):
subi.project_data['name'] = dirname
self.project_data['subprojects'] += [subi.project_data]
except (mesonlib.MesonException, RuntimeError):
- return
+ pass
def func_add_languages(self, node: BaseNode, args: T.List[TYPE_var], kwargs: T.Dict[str, TYPE_var]) -> None:
kwargs = self.flatten_kwargs(kwargs)
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py
index fd59652..72c7cf0 100644
--- a/mesonbuild/dependencies/misc.py
+++ b/mesonbuild/dependencies/misc.py
@@ -422,7 +422,6 @@ class IntlSystemDependency(SystemDependency):
if self.static:
if not self._add_sub_dependency(iconv_factory(env, self.for_machine, {'static': True})):
self.is_found = False
- return
class OpensslSystemDependency(SystemDependency):