Skip to content

Commit f1b67d1

Browse files
authored
Resolve pylint R1720 (#171)
1 parent 84b6ff4 commit f1b67d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ lint.select = [
8787
"PLC", # pylint conventions
8888
"PLE", # pylint errors
8989
"UP", # pyupgrade
90+
"RET506",
9091
]
9192
lint.ignore = ["E402", "E501", "E731", "E741"]
9293
# line-length = 219 # E501: Recommended goal is 88 to match black

pytest_pyodide/decorator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,7 @@ def _run(self, selenium: SeleniumType, args: tuple[Any, ...]):
454454
result = _decode(selenium, result, status, repr)
455455
if status:
456456
raise result
457-
else:
458-
return result
457+
return result
459458

460459
def _code_template(self, args: tuple[Any, ...]) -> str:
461460
"""

0 commit comments

Comments
 (0)