[totem/wip/hadess/pylint-warnings: 2/11] dbusservice: Fix unnecessary elif after return pylint warning
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/pylint-warnings: 2/11] dbusservice: Fix unnecessary elif after return pylint warning
- Date: Wed, 14 Nov 2018 17:45:00 +0000 (UTC)
commit 22867acb4e0628d025bee1dd950d4bd3bed46c12
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 14 16:40:11 2018 +0100
dbusservice: Fix unnecessary elif after return pylint warning
Unnecessary "elif" after "return" (no-else-return)
src/plugins/dbusservice/dbusservice.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/dbusservice/dbusservice.py b/src/plugins/dbusservice/dbusservice.py
index 2859a9c9..49b331c8 100644
--- a/src/plugins/dbusservice/dbusservice.py
+++ b/src/plugins/dbusservice/dbusservice.py
@@ -177,7 +177,8 @@ class Root (dbus.service.Object): # pylint: disable=R0904
'SupportedUriSchemes': self.totem.get_supported_uri_schemes (),
'SupportedMimeTypes': self.totem.get_supported_content_types (),
}
- elif interface_name == 'org.mpris.MediaPlayer2.Player':
+
+ if interface_name == 'org.mpris.MediaPlayer2.Player':
# Loop status (we don't support Track)
if self.totem.remote_get_setting (Totem.RemoteSetting.REPEAT):
loop_status = 'Playlist'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]