mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Refactor code for readability in KaraokeEffect.cs
Expanded conditional statements' blocks in KaraokeEffect.cs to improve readability and maintainability. This change does not alter the overall functionality of the code but makes it easier to handle and debug.
This commit is contained in:
parent
4a81339ebd
commit
79067bcbe0
@ -47,9 +47,15 @@ namespace Nikse.SubtitleEdit.Core.Common.TextEffect
|
||||
if (HtmlUtil.IsStartTagSymbol(ch))
|
||||
{
|
||||
var closeIdx = text.IndexOf(HtmlUtil.GetClosingPair(ch), i + 1);
|
||||
if (closeIdx < 0) return i;
|
||||
if (closeIdx < 0)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return i;
|
||||
}
|
||||
else return i;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user