Skip to content

Commit

Permalink
Fixing compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tanczosm committed Jan 30, 2024
1 parent bbc37a5 commit 249e795
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/Htmxor/Http/HtmxResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class HtmxResponse(HttpContext context)
/// <summary>
/// Allows you to do a client-side redirect that does not do a full page reload.
/// </summary>
/// <param name="location"></param>
/// <param name="url"></param>
/// <returns></returns>
public HtmxResponse Location(string url)
{
Expand Down
44 changes: 22 additions & 22 deletions test/Htmxor.Tests/Http/Mock/MockHttpRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ public override Task<IFormCollection> ReadFormAsync(CancellationToken cancellati
}

/// <inheritdoc/>
public override HttpContext HttpContext { get; }
public override HttpContext HttpContext { get; } = default!;

/// <inheritdoc/>
public override string Method { get; set; }
public override string Method { get; set; } = default!;

/// <inheritdoc/>
public override string Scheme { get; set; }
/// <inheritdoc/>
public override string Scheme { get; set; } = default!;

/// <inheritdoc/>
public override bool IsHttps { get; set; }
/// <inheritdoc/>
public override bool IsHttps { get; set; } = default!;

/// <inheritdoc/>
public override HostString Host { get; set; }
/// <inheritdoc/>
public override HostString Host { get; set; } = default!;

/// <inheritdoc/>
public override PathString PathBase { get; set; }
/// <inheritdoc/>
public override PathString PathBase { get; set; }

/// <inheritdoc/>
public override PathString Path { get; set; }
Expand All @@ -42,26 +42,26 @@ public override Task<IFormCollection> ReadFormAsync(CancellationToken cancellati
public override QueryString QueryString { get; set; }

/// <inheritdoc/>
public override IQueryCollection Query { get; set; }
public override IQueryCollection Query { get; set; } = default!;

/// <inheritdoc/>
public override string Protocol { get; set; }
/// <inheritdoc/>
public override string Protocol { get; set; } = default!;

/// <inheritdoc/>
public override IRequestCookieCollection Cookies { get; set; }
/// <inheritdoc/>
public override IRequestCookieCollection Cookies { get; set; } = default!;

/// <inheritdoc/>
public override long? ContentLength { get; set; }
/// <inheritdoc/>
public override long? ContentLength { get; set; }

/// <inheritdoc/>
public override string? ContentType { get; set; }

/// <inheritdoc/>
public override Stream Body { get; set; }
public override Stream Body { get; set; } = default!;

/// <inheritdoc/>
public override bool HasFormContentType { get; }
/// <inheritdoc/>
public override bool HasFormContentType { get; } = default!;

/// <inheritdoc/>
public override IFormCollection Form { get; set; }
/// <inheritdoc/>
public override IFormCollection Form { get; set; } = default!;
}

0 comments on commit 249e795

Please sign in to comment.