summaryrefslogtreecommitdiff
path: root/sphinx/util/logging.py
diff options
context:
space:
mode:
authordanieleades <33452915+danieleades@users.noreply.github.com>2023-01-02 09:21:32 +0000
committerGitHub <noreply@github.com>2023-01-02 09:21:32 +0000
commitcc8f697a9ba15e9556e86a8375a75dc905381c1a (patch)
treeec409bd01fcd6b6cea1656f51f2322899aa72075 /sphinx/util/logging.py
parentdbf36f8b379f1e60232ecbf85a67e6ab9b096f24 (diff)
downloadsphinx-git-cc8f697a9ba15e9556e86a8375a75dc905381c1a.tar.gz
Address SIM103 lints (#11052)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'sphinx/util/logging.py')
-rw-r--r--sphinx/util/logging.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py
index b2ff96854..6804dd3ca 100644
--- a/sphinx/util/logging.py
+++ b/sphinx/util/logging.py
@@ -353,10 +353,7 @@ class InfoFilter(logging.Filter):
"""Filter error and warning messages."""
def filter(self, record: logging.LogRecord) -> bool:
- if record.levelno < logging.WARNING:
- return True
- else:
- return False
+ return record.levelno < logging.WARNING
def is_suppressed_warning(type: str, subtype: str, suppress_warnings: list[str]) -> bool: