mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 05:56:58 +01:00
Simplify some new() expressions
This commit is contained in:
@@ -34,7 +34,7 @@ namespace Tgstation.Server.Host.Models
|
||||
/// Convert the <see cref="PermissionSet"/> to it's API form.
|
||||
/// </summary>
|
||||
/// <returns>A new <see cref="Api.Models.PermissionSet"/>.</returns>
|
||||
public Api.Models.PermissionSet ToApi() => new Api.Models.PermissionSet
|
||||
public Api.Models.PermissionSet ToApi() => new()
|
||||
{
|
||||
Id = Id,
|
||||
AdministrationRights = AdministrationRights,
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Tgstation.Server.Host.Models
|
||||
public Instance? Instance { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public RepositoryResponse ToApi() => new RepositoryResponse
|
||||
public RepositoryResponse ToApi() => new()
|
||||
{
|
||||
// AccessToken = AccessToken, // never show this
|
||||
AccessUser = AccessUser,
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace Tgstation.Server.Host.Models
|
||||
public ICollection<CompileJob>? CompileJobs { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public Api.Models.RevisionInformation ToApi() => new Api.Models.RevisionInformation
|
||||
public Api.Models.RevisionInformation ToApi() => new()
|
||||
{
|
||||
CommitSha = CommitSha,
|
||||
Timestamp = Timestamp,
|
||||
|
||||
Reference in New Issue
Block a user