diff --git a/PlexCleaner/FfProbeTool.cs b/PlexCleaner/FfProbeTool.cs index 67e6e84d..c30a59b8 100644 --- a/PlexCleaner/FfProbeTool.cs +++ b/PlexCleaner/FfProbeTool.cs @@ -60,16 +60,16 @@ public bool GetPackets( [CallerMemberName] string operation = "" ) { - // Wrap async function in a task - (bool result, string error) result = GetPacketsAsync( + // Run the async worker synchronously; deconstruct so the tuple does not shadow the error out-param + (bool ok, string packetError) = GetPacketsAsync( command, async packet => await Task.FromResult(packetFunc(packet)), operation ) .GetAwaiter() .GetResult(); - error = result.error; - return result.result; + error = packetError; + return ok; } public async Task<(bool result, string error)> GetPacketsAsync( diff --git a/RegressionTests/pyproject.toml b/RegressionTests/pyproject.toml index 257e7cd9..411b6902 100644 --- a/RegressionTests/pyproject.toml +++ b/RegressionTests/pyproject.toml @@ -1,8 +1,7 @@ # Linter-only configuration for the RegressionTests Python utilities. # # These are standalone stdlib-only scripts (no runtime dependencies), so this file carries no -# project/build metadata - only the ruff + mypy config, mirroring the ptr727 Financial-Modeling -# conventions. Run the tools with uv (no install needed): +# project/build metadata - only the ruff + mypy config. Run the tools with uv (no install needed): # # uvx ruff check . # uvx ruff format --check .