removing unnecessary hasattr check

This commit is contained in:
Tom Chapin 2024-02-12 18:53:41 -08:00
parent 0b47293681
commit ed4db2aa45
1 changed files with 1 additions and 1 deletions

View File

@ -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()