Simplify some new() expressions

This commit is contained in:
Jordan Dominion
2023-12-18 19:21:43 -05:00
parent 4a7d675cb3
commit 9ea0b7bed9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ namespace Tgstation.Server.Host.Models
}
/// <inheritdoc />
public ChatBotResponse ToApi() => new ChatBotResponse
public ChatBotResponse ToApi() => new()
{
Channels = Channels.Select(x => x.ToApi(this.Require(x => x.Provider))).ToList(),
ConnectionString = ConnectionString,
@@ -24,7 +24,7 @@ namespace Tgstation.Server.Host.Models
public Instance? Instance { get; set; }
/// <inheritdoc />
public DreamMakerResponse ToApi() => new DreamMakerResponse
public DreamMakerResponse ToApi() => new()
{
ProjectName = ProjectName,
ApiValidationPort = ApiValidationPort,