mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 13:12:39 +01:00
Fix a few Codacy issues
This commit is contained in:
parent
ab4701128a
commit
7722ce1fd5
@ -1,4 +1,5 @@
|
||||
using Nikse.SubtitleEdit.Core.Enums;
|
||||
using System;
|
||||
using Nikse.SubtitleEdit.Core.Enums;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
@ -235,6 +236,8 @@ namespace Nikse.SubtitleEdit.Core
|
||||
sb.AppendLine(pre + l);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
}
|
||||
return sb.ToString().TrimEnd();
|
||||
|
@ -425,7 +425,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
}
|
||||
|
||||
private string GetDialogStyle(DialogType dialogStyle)
|
||||
private static string GetDialogStyle(DialogType dialogStyle)
|
||||
{
|
||||
if (dialogStyle == DialogType.DashSecondLineWithoutSpace)
|
||||
{
|
||||
|
@ -267,6 +267,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
case DialogType.DashSecondLineWithoutSpace:
|
||||
comboBoxDialogStyle.SelectedIndex = 3;
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
||||
_editOn = oldEditOn;
|
||||
|
Loading…
Reference in New Issue
Block a user