mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:03:22 +08:00
Remove unnecessary null check on targetScreen
This commit is contained in:
parent
3a3c2e78a1
commit
17ca26ebee
@ -29,7 +29,7 @@ namespace osu.Game.Overlays.SkinEditor
|
||||
// In the future we'll want this to cover all changes, even to skin's `InstantiationInfo`.
|
||||
// We'll also need to consider cases where multiple targets are on screen at the same time.
|
||||
|
||||
firstTarget = targetScreen?.ChildrenOfType<ISkinnableTarget>().FirstOrDefault();
|
||||
firstTarget = targetScreen.ChildrenOfType<ISkinnableTarget>().FirstOrDefault();
|
||||
|
||||
if (firstTarget == null)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user