Skip to content

Commit 2cc01a9

Browse files
committed
Linux: fix pylint issue
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
1 parent 4e89770 commit 2cc01a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mss/linux.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@ def has_extension(self, extension: str) -> bool:
320320
)
321321
except ScreenShotError:
322322
return False
323-
else:
324-
return True
323+
return True
325324

326325
def _get_display(self, disp: Optional[bytes] = None) -> int:
327326
"""

0 commit comments

Comments
 (0)