Skip to content

Commit 756739a

Browse files
Fix release build error
1 parent 438766f commit 756739a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Certify.Server/Certify.Server.Hub.Api/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
307307
#else
308308
AddSystemStatusItem(
309309
SystemStatusCategories.HUB_API,
310-
SystemStatusKeys.HUB_API_STARTUP_SWAGGER,
310+
SystemStatusKeys.HUB_API_STARTUP_APIDOCS,
311311
title: "API Docs UI not enabled",
312312
description: $"Hub API Swagger docs not enabled in release mode."
313313
);

src/Certify.Server/Certify.Server.HubService/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
#endif
6060

6161
// load optional config but ignore errors if it doesn't exist or is invalid, otherwise service will fail to start
62-
var hubConfigFailed = false;
6362
builder.Configuration.AddJsonFile(p =>
6463
{
6564
p.Path = hubSettings;
@@ -68,7 +67,6 @@
6867
p.OnLoadException = e =>
6968
{
7069
e.Ignore = true;
71-
hubConfigFailed = true;
7270

7371
AddSystemStatusItem(
7472
SystemStatusCategories.HUB_API,

0 commit comments

Comments
 (0)