From 82ac6dec92c172632f26609855421b96ca8e0e3b Mon Sep 17 00:00:00 2001 From: Ivandro Jao Date: Mon, 29 Apr 2024 16:17:36 +0100 Subject: [PATCH] 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 --- src/ui/Forms/GenerateVideoWithHardSubs.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/Forms/GenerateVideoWithHardSubs.cs b/src/ui/Forms/GenerateVideoWithHardSubs.cs index 1a08a5718..92dedf853 100644 --- a/src/ui/Forms/GenerateVideoWithHardSubs.cs +++ b/src/ui/Forms/GenerateVideoWithHardSubs.cs @@ -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)) {