From 6c98dc3cd731f89aca0b1f08f16819c5dd0dcd35 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sat, 18 Apr 2020 16:21:32 -0400 Subject: [PATCH] Disable complexity warning --- src/Tgstation.Server.Host/Controllers/UserController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Controllers/UserController.cs b/src/Tgstation.Server.Host/Controllers/UserController.cs index 18aef852ab..4f33a5a388 100644 --- a/src/Tgstation.Server.Host/Controllers/UserController.cs +++ b/src/Tgstation.Server.Host/Controllers/UserController.cs @@ -185,7 +185,8 @@ namespace Tgstation.Server.Host.Controllers [TgsAuthorize(AdministrationRights.WriteUsers | AdministrationRights.EditOwnPassword)] [ProducesResponseType(typeof(Api.Models.User), 200)] [ProducesResponseType(404)] - #pragma warning disable CA1506 // TODO: Decomplexify + #pragma warning disable CA1502 // TODO: Decomplexify + #pragma warning disable CA1506 public async Task Update([FromBody] UserUpdate model, CancellationToken cancellationToken) { if (model == null) @@ -258,6 +259,7 @@ namespace Tgstation.Server.Host.Controllers }); } #pragma warning restore CA1506 + #pragma warning restore CA1502 /// /// Get information about the current .