mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Merge pull request #1538 from ivandrofly/refact-FDGT
[refact] - remove duplicated code
This commit is contained in:
commit
afda01f690
@ -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