Fix a few Codacy issues

This commit is contained in:
Nikolaj Olsson 2020-02-16 09:15:33 +01:00
parent ab4701128a
commit 7722ce1fd5
3 changed files with 7 additions and 2 deletions

View File

@ -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();

View File

@ -425,7 +425,7 @@ namespace Nikse.SubtitleEdit.Forms
}
}
private string GetDialogStyle(DialogType dialogStyle)
private static string GetDialogStyle(DialogType dialogStyle)
{
if (dialogStyle == DialogType.DashSecondLineWithoutSpace)
{

View File

@ -267,6 +267,8 @@ namespace Nikse.SubtitleEdit.Forms
case DialogType.DashSecondLineWithoutSpace:
comboBoxDialogStyle.SelectedIndex = 3;
break;
default:
throw new ArgumentOutOfRangeException();
}
_editOn = oldEditOn;