aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-03-30 12:47:41 +0300
committerGravatar ks129 <[email protected]>2021-03-30 12:47:41 +0300
commit47f1881b86650d2cc9c4d697ce77c84248244e4f (patch)
tree389060d3bfeb32c37dc69bca3466bef0b8570485
parentRename ResourcesList -> ResourcesListView (diff)
Remove unnecessary exists check from resources path check
-rw-r--r--pydis_site/apps/resources/views/resources_list.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pydis_site/apps/resources/views/resources_list.py b/pydis_site/apps/resources/views/resources_list.py
index 947dae29..bcb7ea67 100644
--- a/pydis_site/apps/resources/views/resources_list.py
+++ b/pydis_site/apps/resources/views/resources_list.py
@@ -20,8 +20,7 @@ class ResourcesListView(TemplateView):
resource_path = RESOURCES_PATH / self.kwargs["type"]
if (
- not resource_path.exists()
- or not resource_path.is_dir()
+ not resource_path.is_dir()
or not resource_path.joinpath("_category_info.yaml").exists()
):
raise Http404