mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
[refact] - remove duplicated code
This commit is contained in:
parent
768059359d
commit
d89b5168a2
@ -21,12 +21,6 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
|
||||
if (!text.Contains(Environment.NewLine))
|
||||
{
|
||||
text = Helper.FixDoubleGreaterThanHelper(text);
|
||||
if (oldText != text)
|
||||
{
|
||||
fixCount++;
|
||||
p.Text = text;
|
||||
callbacks.AddFixToListView(p, fixAction, oldText, text);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -36,12 +30,12 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
|
||||
lines[k] = Helper.FixDoubleGreaterThanHelper(lines[k]);
|
||||
}
|
||||
text = string.Join(Environment.NewLine, lines);
|
||||
if (oldText != text)
|
||||
{
|
||||
fixCount++;
|
||||
p.Text = text;
|
||||
callbacks.AddFixToListView(p, fixAction, oldText, text);
|
||||
}
|
||||
}
|
||||
if (oldText != text)
|
||||
{
|
||||
fixCount++;
|
||||
p.Text = text;
|
||||
callbacks.AddFixToListView(p, fixAction, oldText, text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user