aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anubhav1603 <[email protected]>2020-10-04 12:35:37 +0530
committerGravatar Anubhav1603 <[email protected]>2020-10-04 12:35:37 +0530
commit2a415d883fa79d9c421cec07becf7c1f846788da (patch)
tree4a11f1902628a2004e3a56a73cef22144ed8c026
parentchanged github_avatar_url (diff)
removed tag handling
-rw-r--r--bot/exts/evergreen/source.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/bot/exts/evergreen/source.py b/bot/exts/evergreen/source.py
index 206cf258..0725714f 100644
--- a/bot/exts/evergreen/source.py
+++ b/bot/exts/evergreen/source.py
@@ -74,11 +74,7 @@ class BotSource(commands.Cog):
first_line_no = None
lines_extension = ""
- # Handle tag file location differently than others to avoid errors in some cases
- if not first_line_no:
- file_location = Path(filename).relative_to("/bot/")
- else:
- file_location = Path(filename).relative_to(Path.cwd()).as_posix()
+ file_location = Path(filename).relative_to(Path.cwd()).as_posix()
url = f"{Source.github}/blob/master/{file_location}{lines_extension}"