Skip to content

Commit 063ba34

Browse files
authored
Delete redundant caches for EmptyHttpResult (#63485)
1 parent 442225f commit 063ba34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Http/Http.Results/src/Results.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ public static IResult ServerSentEvents<T>(IAsyncEnumerable<SseItem<T>> values)
10251025
/// <summary>
10261026
/// Produces an empty result response, that when executed will do nothing.
10271027
/// </summary>
1028-
public static IResult Empty { get; } = TypedResults.Empty;
1028+
public static IResult Empty => EmptyHttpResult.Instance;
10291029

10301030
/// <summary>
10311031
/// Provides a container for external libraries to extend

src/Http/Http.Results/src/TypedResults.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ public static ServerSentEventsResult<T> ServerSentEvents<T>(IAsyncEnumerable<Sse
11151115
/// <summary>
11161116
/// Produces an empty result response, that when executed will do nothing.
11171117
/// </summary>
1118-
public static EmptyHttpResult Empty { get; } = EmptyHttpResult.Instance;
1118+
public static EmptyHttpResult Empty => EmptyHttpResult.Instance;
11191119

11201120
/// <summary>
11211121
/// Provides a container for external libraries to extend

0 commit comments

Comments
 (0)