Skip to content

Commit 7752001

Browse files
committed
chore: code linting
Signed-off-by: Vincent Biret <[email protected]>
1 parent 84746f1 commit 7752001

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
@@ -405,7 +405,7 @@ public async Task InvokeShowCommandAsync()
405405
var openApi = Path.Combine(".", "UtilityFiles", "SampleOpenApi.yml");
406406
var args = new[] { "show", "-d", openApi, "-o", "sample.md" };
407407
var parseResult = rootCommand.Parse(args);
408-
var handler = rootCommand.Subcommands.Where(c => c.Name == "show").First().Handler;
408+
var handler = rootCommand.Subcommands.First(c => c.Name == "show").Handler;
409409
var context = new InvocationContext(parseResult);
410410

411411
await handler!.InvokeAsync(context);
@@ -421,7 +421,7 @@ public async Task InvokePluginCommandAsync()
421421
var manifest = Path.Combine(".", "UtilityFiles", "exampleapimanifest.json");
422422
var args = new[] { "plugin", "-m", manifest, "--of", AppDomain.CurrentDomain.BaseDirectory };
423423
var parseResult = rootCommand.Parse(args);
424-
var handler = rootCommand.Subcommands.Where(c => c.Name == "plugin").First().Handler;
424+
var handler = rootCommand.Subcommands.First(c => c.Name == "plugin").Handler;
425425
var context = new InvocationContext(parseResult);
426426

427427
await handler!.InvokeAsync(context);

0 commit comments

Comments
 (0)