summaryrefslogtreecommitdiff
path: root/tests/unit/utils/test_qtutils.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2019-03-13 13:53:09 +0100
committerFlorian Bruhin <me@the-compiler.org>2019-03-13 13:53:09 +0100
commit33463325f46f4f770fa9b7ea0e5c38f6569a8f21 (patch)
tree092c6a4e70c4a58eac42a5665c7357579e06dae4 /tests/unit/utils/test_qtutils.py
parent068168f351b510725112bd8136d22fcfff41ea15 (diff)
downloadqutebrowser-33463325f46f4f770fa9b7ea0e5c38f6569a8f21.tar.gz
qutebrowser-33463325f46f4f770fa9b7ea0e5c38f6569a8f21.zip
Eschew the extraneous elses
https://www.youtube.com/watch?v=JVVMMULwR4s&t=289
Diffstat (limited to 'tests/unit/utils/test_qtutils.py')
-rw-r--r--tests/unit/utils/test_qtutils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unit/utils/test_qtutils.py b/tests/unit/utils/test_qtutils.py
index 8809c4414..e30200bbc 100644
--- a/tests/unit/utils/test_qtutils.py
+++ b/tests/unit/utils/test_qtutils.py
@@ -153,8 +153,7 @@ class QtObject:
"""Get the fake error, or raise AttributeError if set to None."""
if self._error is None:
raise AttributeError
- else:
- return self._error
+ return self._error
def isValid(self):
return self._valid