Remove compiler warning from API

This commit is contained in:
Ske 2019-10-18 13:19:17 +02:00
parent 83c709b69d
commit 49dede7ff8

View File

@ -48,9 +48,9 @@ namespace PluralKit.API.Controllers
[HttpGet] [HttpGet]
[RequiresSystem] [RequiresSystem]
public async Task<ActionResult<PKSystem>> GetOwnSystem() public Task<ActionResult<PKSystem>> GetOwnSystem()
{ {
return Ok(_auth.CurrentSystem); return Task.FromResult<ActionResult<PKSystem>>(Ok(_auth.CurrentSystem));
} }
[HttpGet("{hid}")] [HttpGet("{hid}")]