From a6f883345f1941bf99db1667e84c1caf0b370479 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Thu, 5 Dec 2019 17:44:46 +0100 Subject: [PATCH] Reduce #lines --- Emby.Dlna/Api/DlnaServerService.cs | 8 ++------ MediaBrowser.Api/BaseApiService.cs | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/Emby.Dlna/Api/DlnaServerService.cs b/Emby.Dlna/Api/DlnaServerService.cs index f64c89389f..a451bbcf91 100644 --- a/Emby.Dlna/Api/DlnaServerService.cs +++ b/Emby.Dlna/Api/DlnaServerService.cs @@ -216,14 +216,10 @@ namespace Emby.Dlna.Api protected internal ReadOnlySpan 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 path = Request.PathInfo; diff --git a/MediaBrowser.Api/BaseApiService.cs b/MediaBrowser.Api/BaseApiService.cs index 41ee314df3..2b994d2799 100644 --- a/MediaBrowser.Api/BaseApiService.cs +++ b/MediaBrowser.Api/BaseApiService.cs @@ -317,14 +317,10 @@ namespace MediaBrowser.Api protected internal ReadOnlySpan 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 path = Request.PathInfo;