Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discard some un-used parameters #157

Merged
merged 1 commit into from
Apr 7, 2024
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
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
Loading