mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 13:07:07 +01:00
Simplify some new() expressions
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user