Small clean up to error handling code

This commit is contained in:
David Fowler 2023-05-04 15:41:49 -07:00 committed by Reuben Bond
parent a381a6923c
commit 34fc9496fd

View File

@ -18,7 +18,10 @@ var app = builder.Build();
try
{
await app.CheckHealthAsync();
if (!await app.CheckHealthAsync())
{
return 1;
}
app.UseServiceDefaults();