Skip to content

Commit 6553f30

Browse files
committed
chore: code linting
Signed-off-by: Vincent Biret <[email protected]>
1 parent 7c63538 commit 6553f30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Microsoft.OpenApi.Hidi.Tests/Services/OpenApiServiceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public async Task InvokeShowCommandAsync()
335335
var openApi = Path.Combine(".", "UtilityFiles", "SampleOpenApi.yml");
336336
var args = new[] { "show", "-d", openApi, "-o", "sample.md" };
337337
var parseResult = rootCommand.Parse(args);
338-
var handler = rootCommand.Subcommands.Where(c => c.Name == "show").First().Handler;
338+
var handler = rootCommand.Subcommands.First(c => c.Name == "show").Handler;
339339
var context = new InvocationContext(parseResult);
340340

341341
await handler!.InvokeAsync(context);
@@ -351,7 +351,7 @@ public async Task InvokePluginCommandAsync()
351351
var manifest = Path.Combine(".", "UtilityFiles", "exampleapimanifest.json");
352352
var args = new[] { "plugin", "-m", manifest, "--of", AppDomain.CurrentDomain.BaseDirectory };
353353
var parseResult = rootCommand.Parse(args);
354-
var handler = rootCommand.Subcommands.Where(c => c.Name == "plugin").First().Handler;
354+
var handler = rootCommand.Subcommands.First(c => c.Name == "plugin").Handler;
355355
var context = new InvocationContext(parseResult);
356356

357357
await handler!.InvokeAsync(context);

0 commit comments

Comments
 (0)