From 836b386e0a19fe49d35a65ea4d0faa63e6d6e1d2 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 20 Jul 2026 07:54:30 -0500 Subject: refactor: drop unreachable nil after user-error in recording checks --- modules/video-audio-recording-capture.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/video-audio-recording-capture.el b/modules/video-audio-recording-capture.el index 5e7860fc..7b71d54f 100644 --- a/modules/video-audio-recording-capture.el +++ b/modules/video-audio-recording-capture.el @@ -147,8 +147,7 @@ process started before the property existed) or the file never hit disk." (defun cj/recording-check-ffmpeg () "Check if ffmpeg is available. Error if not found." (unless (executable-find "ffmpeg") - (user-error "Ffmpeg not found. Install with: sudo pacman -S ffmpeg") - nil) + (user-error "Ffmpeg not found. Install with: sudo pacman -S ffmpeg")) t) (defun cj/recording--wayland-p () @@ -159,8 +158,7 @@ process started before the property existed) or the file never hit disk." "Check if wf-recorder is available (needed for Wayland video capture)." (if (executable-find "wf-recorder") t - (user-error "wf-recorder not found. Install with: sudo pacman -S wf-recorder") - nil)) + (user-error "wf-recorder not found. Install with: sudo pacman -S wf-recorder"))) ;;; Device Acquisition and Validation -- cgit v1.2.3