From 3b26bcf47be619796f8827b276d79bba40a05d3d Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Fri, 15 Mar 2024 15:43:36 +0100 Subject: [PATCH] Simplify return code in cmd line - thx Rouzax :) Related to #8029 --- src/ui/Logic/CommandLineConvert/CommandLineConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/Logic/CommandLineConvert/CommandLineConverter.cs b/src/ui/Logic/CommandLineConvert/CommandLineConverter.cs index d2987358a..e9f1001af 100644 --- a/src/ui/Logic/CommandLineConvert/CommandLineConverter.cs +++ b/src/ui/Logic/CommandLineConvert/CommandLineConverter.cs @@ -921,7 +921,7 @@ namespace Nikse.SubtitleEdit.Logic.CommandLineConvert _stdOutWriter.WriteLine(); } - return (count == converted && errors == 0) ? 0 : 1; + return errors == 0 ? 0 : 1; } private static bool IsFileLengthOkForTextSubtitle(string fileName, FileInfo fileInfo)