[totem/gnome-3-30] dbusservice: Fix unnecessary elif after return pylint warning



commit 07f93d574187e80ef4c5797c8214dde886fdd62f
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]