diff options
author | danieleades <33452915+danieleades@users.noreply.github.com> | 2023-01-02 09:21:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 09:21:32 +0000 |
commit | cc8f697a9ba15e9556e86a8375a75dc905381c1a (patch) | |
tree | ec409bd01fcd6b6cea1656f51f2322899aa72075 /sphinx/cmd/quickstart.py | |
parent | dbf36f8b379f1e60232ecbf85a67e6ab9b096f24 (diff) | |
download | sphinx-git-cc8f697a9ba15e9556e86a8375a75dc905381c1a.tar.gz |
Address SIM103 lints (#11052)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r-- | sphinx/cmd/quickstart.py | 5 |
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): |