Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Commit 107eb6d

Browse files
committed
Remove check and exception for parameterless routes
1 parent 03f62a4 commit 107eb6d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Routing/SegmentRegistryFacadeImplementation/RouteRegistrar.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ private static void RunParameterKeyValidation(ValidateParameterKeys validatePara
8181
.Select(parameter => parameter.Key)
8282
.ToList();
8383

84-
if (!parameters.Any())
85-
{
86-
throw new ArgumentException(
87-
"Passing a parameter validation callback to the registration of a route with no parameters is useless.");
88-
}
89-
9084
try
9185
{
9286
validateParameterKeys(parameters);

0 commit comments

Comments
 (0)