[totem/wip/hadess/pylint-warnings: 4/11] opensubtitles: Fix "unnecessary else after return" pylint warning
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/pylint-warnings: 4/11] opensubtitles: Fix "unnecessary else after return" pylint warning
- Date: Wed, 14 Nov 2018 17:45:10 +0000 (UTC)
commit cbe9707b879c5d3bb5875ee35ac3f61110834ff4
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 14 16:52:50 2018 +0100
opensubtitles: Fix "unnecessary else after return" pylint warning
Unnecessary "else" after "return" (no-else-return)
src/plugins/opensubtitles/opensubtitles.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index f4ab5a46..bb15e0dd 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -335,8 +335,8 @@ class OpenSubtitlesModel:
if result.get ('data'):
self._lock.release ()
return (result['data'], message)
- else:
- message = _(u'No results found.')
+
+ message = _(u'No results found.')
else:
message = log_in_message
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]