Remove unnecessary nullability of storyboard mods list

This commit is contained in:
Salman Ahmed 2022-03-03 00:09:12 +03:00
parent 2ce4faa356
commit 3630ab2db2
2 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
@ -64,7 +63,7 @@ protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnl
public DrawableStoryboard(Storyboard storyboard, IReadOnlyList<Mod> mods)
{
Storyboard = storyboard;
Mods = mods ?? Array.Empty<Mod>();
Mods = mods;
Size = new Vector2(640, 480);

View File

@ -91,7 +91,7 @@ public bool ReplacesBackground
}
}
public DrawableStoryboard CreateDrawable(IReadOnlyList<Mod> mods = null) =>
public DrawableStoryboard CreateDrawable(IReadOnlyList<Mod> mods) =>
new DrawableStoryboard(this, mods);
public Drawable CreateSpriteFromResourcePath(string path, TextureStore textureStore)