Fix typo in code comment

A typo in the comment for the subtitle file location function was corrected. Previously, the comment read "try locate subtitle file for the input vide file", and now it reads "try to locate subtitle file for the input vide file". Other changes include removal of an unused variable "fileNameNoExt".

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
This commit is contained in:
Ivandro Jao 2024-04-29 16:17:36 +01:00
parent c3af5f22ca
commit 82ac6dec92

View File

@ -2146,9 +2146,7 @@ namespace Nikse.SubtitleEdit.Forms
item.VideoFileSizeInBytes = new FileInfo(videoFileName).Length;
var path = Path.GetDirectoryName(videoFileName);
var fileNameNoExt = Path.GetFileNameWithoutExtension(videoFileName);
// try locate subtitle file for the input vide file
// try to locate subtitle file for the input vide file
var subtitleFile = FileUtil.TryLocateSubtitleFile(path, videoFileName);
if (File.Exists(subtitleFile))
{