Cleanup code

This commit is contained in:
jvyden 2021-10-14 19:01:34 -04:00
commit 323018e36a
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
2 changed files with 1 additions and 2 deletions

View file

@ -24,7 +24,7 @@ namespace ProjectLighthouse.Controllers {
try { try {
loginData = LoginData.CreateFromString(body); loginData = LoginData.CreateFromString(body);
} }
catch(Exception e) { catch {
return this.BadRequest(); return this.BadRequest();
} }

View file

@ -17,7 +17,6 @@ namespace ProjectLighthouse.Controllers {
[HttpPost("startPublish")] [HttpPost("startPublish")]
public async Task<IActionResult> StartPublish() { public async Task<IActionResult> StartPublish() {
Slot slot = await this.GetSlotFromBody(); Slot slot = await this.GetSlotFromBody();
if(slot == null) return this.BadRequest(); // if the level cant be parsed then it obviously cant be uploaded 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")); return this.Ok(LbpSerializer.TaggedStringElement("slot", "", "type", "user"));