mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Don't bother checking if source is None
This commit is contained in:
@@ -185,7 +185,6 @@ class DigitalOutputDevice(OutputDevice):
|
|||||||
self._blink_thread = None
|
self._blink_thread = None
|
||||||
|
|
||||||
def _stop_source(self):
|
def _stop_source(self):
|
||||||
if self.source is not None:
|
|
||||||
self.source = None
|
self.source = None
|
||||||
|
|
||||||
def _stop_blink(self):
|
def _stop_blink(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user