Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/DemoAPI/Controllers/WeatherForecastController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ namespace DemoAPI.Controllers
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
public WeatherForecastController()
{
}

[HttpGet("hello")]
public IActionResult GetHello()
{
Expand Down
2 changes: 0 additions & 2 deletions src/Throttlr.Api.RateLimit/Core/RateLimitPolicy.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace RateLimit.Throttlr.Core
{
Expand Down Expand Up @@ -47,7 +45,7 @@
string name,
int limit,
TimeSpan window,
Func<RateLimitContext, string> partitionKeySelector = null)

Check warning on line 48 in src/Throttlr.Api.RateLimit/Core/RateLimitPolicy.cs

View workflow job for this annotation

GitHub Actions / demo-build

Cannot convert null literal to non-nullable reference type.

Check warning on line 48 in src/Throttlr.Api.RateLimit/Core/RateLimitPolicy.cs

View workflow job for this annotation

GitHub Actions / demo-build

Cannot convert null literal to non-nullable reference type.

Check warning on line 48 in src/Throttlr.Api.RateLimit/Core/RateLimitPolicy.cs

View workflow job for this annotation

GitHub Actions / build (8.0.x)

Cannot convert null literal to non-nullable reference type.

Check warning on line 48 in src/Throttlr.Api.RateLimit/Core/RateLimitPolicy.cs

View workflow job for this annotation

GitHub Actions / build (8.0.x)

Cannot convert null literal to non-nullable reference type.

Check warning on line 48 in src/Throttlr.Api.RateLimit/Core/RateLimitPolicy.cs

View workflow job for this annotation

GitHub Actions / build (7.0.x)

Cannot convert null literal to non-nullable reference type.

Check warning on line 48 in src/Throttlr.Api.RateLimit/Core/RateLimitPolicy.cs

View workflow job for this annotation

GitHub Actions / build (7.0.x)

Cannot convert null literal to non-nullable reference type.

Check warning on line 48 in src/Throttlr.Api.RateLimit/Core/RateLimitPolicy.cs

View workflow job for this annotation

GitHub Actions / build (6.0.x)

Cannot convert null literal to non-nullable reference type.

Check warning on line 48 in src/Throttlr.Api.RateLimit/Core/RateLimitPolicy.cs

View workflow job for this annotation

GitHub Actions / build (6.0.x)

Cannot convert null literal to non-nullable reference type.
{
if (string.IsNullOrWhiteSpace(name))
throw new ArgumentException("Policy name cannot be null or empty.", nameof(name));
Expand Down
Loading