summaryrefslogtreecommitdiff
path: root/sphinx/cmd/quickstart.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r--sphinx/cmd/quickstart.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py
index 0e714538e..0282eb827 100644
--- a/sphinx/cmd/quickstart.py
+++ b/sphinx/cmd/quickstart.py
@@ -174,10 +174,7 @@ class QuickstartRenderer(SphinxRenderer):
It will be removed in the future without deprecation period.
"""
template = path.join(self.templatedir, path.basename(template_name))
- if self.templatedir and path.exists(template):
- return True
- else:
- return False
+ return bool(self.templatedir) and path.exists(template)
def render(self, template_name: str, context: dict[str, Any]) -> str:
if self._has_custom_template(template_name):