Apply more suggested formatting changes

This commit is contained in:
Michael VanOverbeek 2021-10-31 13:37:34 -04:00
commit 8299677767

View file

@ -34,7 +34,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
} }
[HttpGet("user/{username}/playlists")] [HttpGet("user/{username}/playlists")]
public async Task<IActionResult> GetUserPlaylists(string username) public IActionResult GetUserPlaylists(string username)
{ {
return this.Ok(); return this.Ok();
} }
@ -135,9 +135,8 @@ namespace LBPUnion.ProjectLighthouse.Controllers
} }
// the way location on a user card works is stupid and will not save with the way below as-is, so we do the following: // the way location on a user card works is stupid and will not save with the way below as-is, so we do the following:
if (locationChanged) if (locationChanged) // only modify the database if we modify here
{ {
// only modify the database if we modify here
Location l = await this.database.Locations.Where(l => l.Id == user.LocationId) Location l = await this.database.Locations.Where(l => l.Id == user.LocationId)
.FirstOrDefaultAsync(); // find the location in the database again .FirstOrDefaultAsync(); // find the location in the database again