Skip to content

Commit

Permalink
pylint: fix useless-return
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eli-schwartz committed May 19, 2024
1 parent 125d334 commit aa9b7b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion mesonbuild/ast/introspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def do_subproject(self, dirname: SubProject) -> None:
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)
Expand Down
1 change: 0 additions & 1 deletion mesonbuild/dependencies/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ def __init__(self, name: str, env: 'Environment', kwargs: T.Dict[str, T.Any]):
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):
Expand Down

0 comments on commit aa9b7b9

Please sign in to comment.