From 323018e36a355aacc468811b8c8373b2af22b768 Mon Sep 17 00:00:00 2001 From: jvyden Date: Thu, 14 Oct 2021 19:01:34 -0400 Subject: [PATCH] Cleanup code --- ProjectLighthouse/Controllers/LoginController.cs | 2 +- ProjectLighthouse/Controllers/PublishController.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ProjectLighthouse/Controllers/LoginController.cs b/ProjectLighthouse/Controllers/LoginController.cs index 9091f41a..c6f9b1e6 100644 --- a/ProjectLighthouse/Controllers/LoginController.cs +++ b/ProjectLighthouse/Controllers/LoginController.cs @@ -24,7 +24,7 @@ namespace ProjectLighthouse.Controllers { try { loginData = LoginData.CreateFromString(body); } - catch(Exception e) { + catch { return this.BadRequest(); } diff --git a/ProjectLighthouse/Controllers/PublishController.cs b/ProjectLighthouse/Controllers/PublishController.cs index 6ccadf20..77d92c21 100644 --- a/ProjectLighthouse/Controllers/PublishController.cs +++ b/ProjectLighthouse/Controllers/PublishController.cs @@ -17,7 +17,6 @@ namespace ProjectLighthouse.Controllers { [HttpPost("startPublish")] public async Task StartPublish() { Slot slot = await this.GetSlotFromBody(); - if(slot == null) return this.BadRequest(); // if the level cant be parsed then it obviously cant be uploaded return this.Ok(LbpSerializer.TaggedStringElement("slot", "", "type", "user"));