From 69657877c873822b6c2f4d955b37de9133f7138d Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Sat, 27 Apr 2024 21:48:30 +0200 Subject: [PATCH] Remove unnecessary code Signed-off-by: Carmen Bianca BAKKER --- src/reuse/vcs.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/reuse/vcs.py b/src/reuse/vcs.py index 73c40c7e..b5bb7326 100644 --- a/src/reuse/vcs.py +++ b/src/reuse/vcs.py @@ -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() @@ -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() @@ -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()