From 29511cfd2d4c8116956282b27e0826ed8d65fd7d Mon Sep 17 00:00:00 2001 From: jo Date: Mon, 14 Feb 2022 17:33:38 +0100 Subject: [PATCH] test(analyzer): fix inconsistent return statement --- analyzer/libretime_analyzer/pipeline/_ffmpeg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/analyzer/libretime_analyzer/pipeline/_ffmpeg.py b/analyzer/libretime_analyzer/pipeline/_ffmpeg.py index 735a58e71..35dafdb73 100644 --- a/analyzer/libretime_analyzer/pipeline/_ffmpeg.py +++ b/analyzer/libretime_analyzer/pipeline/_ffmpeg.py @@ -38,6 +38,7 @@ def probe_replaygain(filepath: Path) -> Optional[float]: if track_gain_match: return float(track_gain_match.group(1)) + return None _COMPUTE_REPLAYGAIN_RE = re.compile( @@ -55,6 +56,7 @@ def compute_replaygain(filepath: Path) -> Optional[float]: if track_gain_match: return float(track_gain_match.group(1)) + return None _SILENCE_DETECT_RE = re.compile(