Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Jan 21, 2023
1 parent d17dd16 commit 52e553c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/Http/Http.Results/src/HttpResultsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ public static void ApplyProblemDetailsDefaultsIfNeeded(object? value, int? statu
}
}

public static RouteValueDictionary EnsureValue(RouteValueDictionary? values) => values ?? new RouteValueDictionary();

internal static partial class Log
{
[LoggerMessage(1, LogLevel.Information,
Expand Down
6 changes: 3 additions & 3 deletions src/Http/Http.Results/test/ResultsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ public void Created_WithNullStringUriAndValue_SetsLocationNull()
//Arrange
object value = new { };

// Act
// Act
var result = Results.Created(default(string), value) as Created<object>;

//Assert
Expand All @@ -600,7 +600,7 @@ public void Created_WithEmptyStringUriAndValue_SetsLocationEmpty()
//Arrange
object value = new { };

// Act
// Act
var result = Results.Created(string.Empty, value) as Created<object>;

//Assert
Expand All @@ -614,7 +614,7 @@ public void Created_WithNullUriAndValue_SetsLocationNull()
//Arrange
object value = new { };

// Act
// Act
var result = Results.Created(default(Uri), value) as Created<object>;

//Assert
Expand Down

0 comments on commit 52e553c

Please sign in to comment.