removing unnecessary hasattr check

pull/34/head
Tom Chapin 11 months ago
parent 0b47293681
commit ed4db2aa45

@ -180,7 +180,7 @@ class Device:
if key == keyboard.Key.space:
self.toggle_recording(False)
elif CAMERA_ENABLED and hasattr(key, 'char') and key == keyboard.KeyCode.from_char('c'):
elif CAMERA_ENABLED and key == keyboard.KeyCode.from_char('c'):
self.fetch_image_from_camera()

Loading…
Cancel
Save