Skip to content

Commit

Permalink
Discard some un-used parameters (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Apr 7, 2024
1 parent d2a937b commit f360e65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Alba/Security/AuthenticationStub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ IHostBuilder IAlbaExtension.Configure(IHostBuilder builder)
services.AddSingleton(this);
services.AddAuthentication("Test")
.AddScheme<AuthenticationSchemeOptions, TestAuthHandler>(
"Test", o => {});
"Test", _ => {});
});
}

Expand Down
6 changes: 3 additions & 3 deletions src/Alba/Serialization/FormatterSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public Stream Write<T>(T body)

var writer = new StreamWriter(stream);
var outputContext =
new OutputFormatterWriteContext(stubContext, (s, e) => writer, typeof(T), body);
new OutputFormatterWriteContext(stubContext, (_, _) => writer, typeof(T), body);
_output.WriteAsync(outputContext).GetAwaiter().GetResult();

return stream;
Expand All @@ -56,7 +56,7 @@ public T Read<T>(ScenarioResult response)

if (buffer.Length == 0) throw new EmptyResponseException();

var inputContext = new InputFormatterContext(standinContext, typeof(T).Name, new ModelStateDictionary(), metadata, (s, e) => new StreamReader(s));
var inputContext = new InputFormatterContext(standinContext, typeof(T).Name, new ModelStateDictionary(), metadata, (s, _) => new StreamReader(s));
var result = _input.ReadAsync(inputContext).GetAwaiter().GetResult();

if (result.HasError)
Expand Down Expand Up @@ -98,7 +98,7 @@ public async Task<T> ReadAsync<T>(ScenarioResult response)

if (buffer.Length == 0) throw new EmptyResponseException();

var inputContext = new InputFormatterContext(standinContext, typeof(T).Name, new ModelStateDictionary(), metadata, (s, e) => new StreamReader(s));
var inputContext = new InputFormatterContext(standinContext, typeof(T).Name, new ModelStateDictionary(), metadata, (s, _) => new StreamReader(s));
var result = await _input.ReadAsync(inputContext);

if (result.HasError)
Expand Down

0 comments on commit f360e65

Please sign in to comment.