From 2a415d883fa79d9c421cec07becf7c1f846788da Mon Sep 17 00:00:00 2001 From: Anubhav1603 Date: Sun, 4 Oct 2020 12:35:37 +0530 Subject: removed tag handling --- bot/exts/evergreen/source.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'bot/exts/evergreen/source.py') 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}" -- cgit v1.2.3