Make BackgroundHash not nullable

This commit is contained in:
Slendy 2023-03-29 13:06:01 -05:00
parent d41b518fc2
commit 6fcc51fca3
No known key found for this signature in database
GPG key ID: 7288D68361B91428
2 changed files with 1 additions and 7 deletions

View file

@ -122,12 +122,6 @@ public class PublishController : ControllerBase
// Yes Rider, this isn't null
Debug.Assert(slot.Resources != null, "slot.ResourceList != null");
if (string.IsNullOrWhiteSpace(slot.BackgroundHash))
{
Logger.Warn("Rejecting level upload, background is null", LogArea.Publish);
return this.BadRequest();
}
slot.Description = CensorHelper.FilterMessage(slot.Description);
if (slot.Description.Length > 512)