From 84d4bddb6897e888086239103bdb312c2c2f0821 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sun, 17 Aug 2025 20:10:32 -0400 Subject: [PATCH] Simplify this expression --- .../Authority/Core/RestAuthorityInvoker{TAuthority}.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Tgstation.Server.Host/Authority/Core/RestAuthorityInvoker{TAuthority}.cs b/src/Tgstation.Server.Host/Authority/Core/RestAuthorityInvoker{TAuthority}.cs index b2a9572666..8d3e54067c 100644 --- a/src/Tgstation.Server.Host/Authority/Core/RestAuthorityInvoker{TAuthority}.cs +++ b/src/Tgstation.Server.Host/Authority/Core/RestAuthorityInvoker{TAuthority}.cs @@ -162,10 +162,9 @@ namespace Tgstation.Server.Host.Authority.Core if (projectable == null) return controller.Forbid(); - var transformer = new TTransformer(); var authorityResponse = await projectable.Resolve( queryable => queryable - .Select(transformer.ProjectedExpression) + .Select(new TTransformer().ProjectedExpression) .TagWith("REST Projections Applied")); var erroredResult = CreateErroredActionResult(controller, authorityResponse); if (erroredResult != null)