aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/BaseApiService.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-12-05 17:44:46 +0100
committerBond-009 <bond.009@outlook.com>2019-12-05 17:44:46 +0100
commita6f883345f1941bf99db1667e84c1caf0b370479 (patch)
treefdd425a6e8f0544800c6c7614d80f36903ecf8bb /MediaBrowser.Api/BaseApiService.cs
parent3221e837f9758e90b91f0f6760af1c3b67e04c2d (diff)
Reduce #lines
Diffstat (limited to 'MediaBrowser.Api/BaseApiService.cs')
-rw-r--r--MediaBrowser.Api/BaseApiService.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/MediaBrowser.Api/BaseApiService.cs b/MediaBrowser.Api/BaseApiService.cs
index 41ee314df..2b994d279 100644
--- a/MediaBrowser.Api/BaseApiService.cs
+++ b/MediaBrowser.Api/BaseApiService.cs
@@ -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;