Skip to content

Commit 304fe53

Browse files
committed
Move comment about tag handling
1 parent 43c8d2b commit 304fe53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydis_core/exts/source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ def _get_source_link(self, source_item: object, source_type: _SourceType) -> tup
142142
first_line_no = None
143143
lines_extension = ""
144144

145-
# Handle tag file location differently than others to avoid errors in some cases
146145
if not first_line_no:
147146
file_location = Path(filename)
148147
elif source_type == _SourceType.core_command:
@@ -154,6 +153,7 @@ def _get_source_link(self, source_item: object, source_type: _SourceType) -> tup
154153
internal_location = Path(filename).relative_to(package_location).as_posix()
155154
file_location = "pydis_core/exts/" + internal_location
156155
else:
156+
# Handle tag file location differently than others to avoid errors in some cases
157157
file_location = Path(filename).relative_to(Path.cwd()).as_posix()
158158

159159
repo = self.github_repo if source_type != _SourceType.core_command else BOT_CORE_REPO

0 commit comments

Comments
 (0)