Fixed breaking change

This commit is contained in:
Nikolaj Geisle
2021-10-07 09:51:04 +02:00
parent 1a25f723f7
commit 09a35ef96c
2 changed files with 35 additions and 5 deletions

View File

@@ -20,9 +20,8 @@ namespace Umbraco.Cms.Core.Services
_localizationService = localizationService;
}
public IEnumerable<UserData> GetUserData()
{
var userDataList = new List<UserData>
public IEnumerable<UserData> GetUserData() =>
new List<UserData>
{
new("Server OS", RuntimeInformation.OSDescription),
new("Server Framework", RuntimeInformation.FrameworkDescription),
@@ -32,8 +31,6 @@ namespace Umbraco.Cms.Core.Services
new("Current UI Culture", Thread.CurrentThread.CurrentUICulture.ToString()),
new("Current Webserver", GetCurrentWebServer())
};
return userDataList;
}
private string GetCurrentWebServer() => IsRunningInProcessIIS() ? "IIS" : "Kestrel";