mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-26 19:29:07 +00:00
Cleanup code
This commit is contained in:
parent
f55f15a81c
commit
323018e36a
2 changed files with 1 additions and 2 deletions
|
@ -24,7 +24,7 @@ namespace ProjectLighthouse.Controllers {
|
|||
try {
|
||||
loginData = LoginData.CreateFromString(body);
|
||||
}
|
||||
catch(Exception e) {
|
||||
catch {
|
||||
return this.BadRequest();
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ namespace ProjectLighthouse.Controllers {
|
|||
[HttpPost("startPublish")]
|
||||
public async Task<IActionResult> 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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue