Skip to content

Commit 15abfde

Browse files
committed
Merge branch 'develop'
2 parents ea5bfc7 + 94be63f commit 15abfde

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Devlead.Testing.MockHttp/Routes.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ out var response
5050
return GetResponseBuilder;
5151
}
5252

53-
private static ImmutableArray<Route>? _routes;
54-
5553
private static ImmutableDictionary<(
5654
HttpMethod Method,
5755
string AbsoluteUri
@@ -75,7 +73,7 @@ static ImmutableArray<Route> GetRoutes()
7573
{
7674
lock (_lock)
7775
{
78-
return _routes ??= ImmutableArray.Create(System.Text.Json.JsonSerializer.Deserialize<Route[]>(Resources<T>.GetString("Routes.json") ?? throw new ArgumentNullException("routesJson")) ?? throw new ArgumentNullException("routes"));
76+
return ImmutableArray.Create(System.Text.Json.JsonSerializer.Deserialize<Route[]>(Resources<T>.GetString("Routes.json") ?? throw new ArgumentNullException("routesJson")) ?? throw new ArgumentNullException("routes"));
7977
}
8078
}
8179

0 commit comments

Comments
 (0)