diff options
Diffstat (limited to 'plugins/VNLib.Plugins.Essentials.Content.Routing/src/RouteComparer.cs')
-rw-r--r-- | plugins/VNLib.Plugins.Essentials.Content.Routing/src/RouteComparer.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/VNLib.Plugins.Essentials.Content.Routing/src/RouteComparer.cs b/plugins/VNLib.Plugins.Essentials.Content.Routing/src/RouteComparer.cs index bd9f3b3..61e8303 100644 --- a/plugins/VNLib.Plugins.Essentials.Content.Routing/src/RouteComparer.cs +++ b/plugins/VNLib.Plugins.Essentials.Content.Routing/src/RouteComparer.cs @@ -1,5 +1,5 @@ /* -* Copyright (c) 2022 Vaughn Nugent +* Copyright (c) 2023 Vaughn Nugent * * Library: VNLib * Package: VNLib.Plugins.Essentials.Content.Routing @@ -33,10 +33,10 @@ namespace VNLib.Plugins.Essentials.Content.Routing /// <summary> /// Sorts routing rules based on closest match path/hostname routing along with privilage priority /// </summary> - internal class RouteComparer : IComparer<Route> + internal sealed class RouteComparer : IComparer<Route> { //The idea is that hostnames without wildcards are exact, and hostnames with wildcards are "catch all" - public int Compare(Route x, Route y) + public int Compare(Route? x, Route? y) { int val = 0; //If x contains a wildcard in the hostname, then it is less than y |