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"));