Skip to content

Commit

Permalink
Merge pull request #969 from carmenbianca/remove-unnecessary-code
Browse files Browse the repository at this point in the history
Remove unnecessary code
  • Loading branch information
carmenbianca authored Apr 27, 2024
2 parents a55d195 + 6965787 commit bf785b0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/reuse/vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ def is_submodule(self, path: StrPath) -> bool:

@classmethod
def in_repo(cls, directory: StrPath) -> bool:
if directory is None:
directory = Path.cwd()

if not Path(directory).is_dir():
raise NotADirectoryError()

Expand Down Expand Up @@ -220,9 +217,6 @@ def is_submodule(self, path: StrPath) -> bool:

@classmethod
def in_repo(cls, directory: StrPath) -> bool:
if directory is None:
directory = Path.cwd()

if not Path(directory).is_dir():
raise NotADirectoryError()

Expand Down Expand Up @@ -277,9 +271,6 @@ def is_submodule(self, path: StrPath) -> bool:

@classmethod
def in_repo(cls, directory: StrPath) -> bool:
if directory is None:
directory = Path.cwd()

if not Path(directory).is_dir():
raise NotADirectoryError()

Expand Down

0 comments on commit bf785b0

Please sign in to comment.