Skip to content

Commit 157b41f

Browse files
committed
fix pylint
1 parent b4b048b commit 157b41f

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -809,11 +809,10 @@ def subscribe(self, topic, qos=0):
809809
self.on_subscribe(self, self._user_data, t, q)
810810
self._subscribed_topics.append(t)
811811
return
812-
else:
813-
raise MMQTTException(
814-
f"invalid message received as response to "
815-
f"SUBSCRIBE: {hex(op)}"
816-
)
812+
813+
raise MMQTTException(
814+
f"invalid message received as response to " f"SUBSCRIBE: {hex(op)}"
815+
)
817816

818817
def unsubscribe(self, topic):
819818
"""Unsubscribes from a MQTT topic.
@@ -868,11 +867,11 @@ def unsubscribe(self, topic):
868867
self.on_unsubscribe(self, self._user_data, t, self._pid)
869868
self._subscribed_topics.remove(t)
870869
return
871-
else:
872-
raise MMQTTException(
873-
f"invalid message received as response to "
874-
f"UNSUBSCRIBE: {hex(op)}"
875-
)
870+
871+
raise MMQTTException(
872+
f"invalid message received as response to "
873+
f"UNSUBSCRIBE: {hex(op)}"
874+
)
876875

877876
def _recompute_reconnect_backoff(self):
878877
"""

0 commit comments

Comments
 (0)