mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-14 01:01:27 +00:00
Make BackgroundHash not nullable
This commit is contained in:
parent
d41b518fc2
commit
6fcc51fca3
2 changed files with 1 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue