aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Services/ServiceController.cs
diff options
context:
space:
mode:
authortelans <telans@protonmail.com>2020-06-20 20:35:29 +1200
committertelans <telans@protonmail.com>2020-06-20 20:35:29 +1200
commit98db8f72e01b608e6c384ecf5b107fc2d105b652 (patch)
tree8099ba47507cfa9f1ff9b6e456cf854108298a63 /Emby.Server.Implementations/Services/ServiceController.cs
parent8e3d8748021fe0336e2fc1211810cc9bbe2c8850 (diff)
fix SA1503 for one line if statements
Diffstat (limited to 'Emby.Server.Implementations/Services/ServiceController.cs')
-rw-r--r--Emby.Server.Implementations/Services/ServiceController.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Services/ServiceController.cs b/Emby.Server.Implementations/Services/ServiceController.cs
index b84e47140..857df591a 100644
--- a/Emby.Server.Implementations/Services/ServiceController.cs
+++ b/Emby.Server.Implementations/Services/ServiceController.cs
@@ -144,7 +144,10 @@ namespace Emby.Server.Implementations.Services
var yieldedWildcardMatches = RestPath.GetFirstMatchWildCardHashKeys(matchUsingPathParts);
foreach (var potentialHashMatch in yieldedWildcardMatches)
{
- if (!this.RestPathMap.TryGetValue(potentialHashMatch, out firstMatches)) continue;
+ if (!this.RestPathMap.TryGetValue(potentialHashMatch, out firstMatches))
+ {
+ continue;
+ }
var bestScore = -1;
RestPath bestMatch = null;