Simplify return code in cmd line - thx Rouzax :)

Related to #8029
This commit is contained in:
Nikolaj Olsson 2024-03-15 15:43:36 +01:00
parent 1dc0706b86
commit 3b26bcf47b

View File

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