Reduce #lines

This commit is contained in:
Bond-009 2019-12-05 17:44:46 +01:00
parent 3221e837f9
commit a6f883345f
2 changed files with 4 additions and 12 deletions

View file

@ -216,14 +216,10 @@ namespace Emby.Dlna.Api
protected internal ReadOnlySpan<char> GetPathValue(int index)
{
static void ThrowIndexOutOfRangeException()
{
throw new IndexOutOfRangeException("Path doesn't contain enough segments.");
}
=> throw new IndexOutOfRangeException("Path doesn't contain enough segments.");
static void ThrowInvalidDataException()
{
throw new InvalidDataException("Path doesn't start with the base url.");
}
=> throw new InvalidDataException("Path doesn't start with the base url.");
ReadOnlySpan<char> path = Request.PathInfo;

View file

@ -317,14 +317,10 @@ namespace MediaBrowser.Api
protected internal ReadOnlySpan<char> GetPathValue(int index)
{
static void ThrowIndexOutOfRangeException()
{
throw new IndexOutOfRangeException("Path doesn't contain enough segments.");
}
=> throw new IndexOutOfRangeException("Path doesn't contain enough segments.");
static void ThrowInvalidDataException()
{
throw new InvalidDataException("Path doesn't start with the base url.");
}
=> throw new InvalidDataException("Path doesn't start with the base url.");
ReadOnlySpan<char> path = Request.PathInfo;