Skip to content

Commit

Permalink
Reduce Meson complexity
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <carmenbianca@fsfe.org>
  • Loading branch information
carmenbianca committed Oct 31, 2023
1 parent 8a1dcb8 commit cd79660
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/reuse/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ def from_directory(
root: The root of the project.
include_submodules: Whether to also lint VCS submodules.
include_meson_subprojects: Whether to also lint Meson subprojects.
If the provided value is True, but 'meson.build' does not exist,
then it is set as False on the created object.
Raises:
FileNotFoundError: if root does not exist.
Expand Down Expand Up @@ -133,10 +131,6 @@ def from_directory(
except FileNotFoundError:
dep5_copyright = None

meson_build_path = root / "meson.build"
uses_meson = meson_build_path.is_file()
include_meson_subprojects = include_meson_subprojects and uses_meson

project = cls(
root,
vcs_strategy=vcs_strategy,
Expand Down

0 comments on commit cd79660

Please sign in to comment.