Skip to content

Commit 84ced37

Browse files
Copilotfelickz
andcommitted
Simplify repo_root path logic in link checker
Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>
1 parent 0e47be6 commit 84ced37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_links.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def main():
211211
md_files = []
212212
# Use the directory where the script is located as the repository root
213213
# This makes the script work from any location
214-
repo_root = os.path.dirname(os.path.abspath(__file__)) or os.getcwd()
214+
repo_root = os.path.dirname(os.path.abspath(__file__))
215215

216216
for root, dirs, files in os.walk(repo_root):
217217
# Skip .git directory

0 commit comments

Comments
 (0)