]> kaliko git repositories - mpd-sima.git/blobdiff - sima/plugins/core/uniq.py
Fixed code smell
[mpd-sima.git] / sima / plugins / core / uniq.py
index 292de6f6f38e09ac8e76c319959fb38e863ab724..60d1680ed174862817bdf830831ab9462d448eb1 100644 (file)
@@ -54,11 +54,10 @@ class Uniq(Plugin):
             self.sub_chan()
 
     def is_capable(self):
-        if {'channels', 'subscribe'}.issubset(set(self.player.commands())):
-            # Groove Basin compatibility
-            # For some reason Groove Basin have channels command but no
-            # subscribe command‽
-            return True
+        # Groove Basin compatibility
+        # For some reason Groove Basin have channels command but no
+        # subscribe command‽
+        return {'channels', 'subscribe'}.issubset(set(self.player.commands()))
 
     def get_channels(self):
         return [chan for chan in self.player.channels() if