diff options
| author | telans <telans@protonmail.com> | 2020-06-19 21:57:37 +1200 |
|---|---|---|
| committer | telans <telans@protonmail.com> | 2020-06-20 18:13:11 +1200 |
| commit | afe09612e82a49c4021fbc2ceddf1816db9f959d (patch) | |
| tree | 69380e1835fd73aa00a3ec7b92099c0506bb1f35 /Emby.Server.Implementations/Services/ServicePath.cs | |
| parent | e8e5208fbd9484a1b37eed5dece524f108886fe0 (diff) | |
fix SA1119
Diffstat (limited to 'Emby.Server.Implementations/Services/ServicePath.cs')
| -rw-r--r-- | Emby.Server.Implementations/Services/ServicePath.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Services/ServicePath.cs b/Emby.Server.Implementations/Services/ServicePath.cs index 3b7ffaf2c..14ae126a3 100644 --- a/Emby.Server.Implementations/Services/ServicePath.cs +++ b/Emby.Server.Implementations/Services/ServicePath.cs @@ -302,9 +302,9 @@ namespace Emby.Server.Implementations.Services } // Routes with least wildcard matches get the highest score - var score = Math.Max((100 - wildcardMatchCount), 1) * 1000 + var score = Math.Max(100 - wildcardMatchCount, 1) * 1000 // Routes with less variable (and more literal) matches - + Math.Max((10 - VariableArgsCount), 1) * 100; + + Math.Max(10 - VariableArgsCount, 1) * 100; // Exact verb match is better than ANY if (Verbs.Length == 1 && string.Equals(httpMethod, Verbs[0], StringComparison.OrdinalIgnoreCase)) |
