mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Fix some more missed CI inspections
This commit is contained in:
parent
df2dcf85b4
commit
e273c223a8
@ -44,7 +44,7 @@ namespace osu.Game.Tests.Visual.Online
|
||||
|
||||
selector.BeatmapSet = new APIBeatmapSet
|
||||
{
|
||||
Beatmaps = selector.BeatmapSet.Beatmaps
|
||||
Beatmaps = selector.BeatmapSet!.Beatmaps
|
||||
.Where(b => b.Ruleset.OnlineID != ruleset)
|
||||
.Concat(Enumerable.Range(0, count).Select(_ => new APIBeatmap { RulesetID = ruleset }))
|
||||
.ToArray(),
|
||||
|
@ -10,9 +10,9 @@ namespace osu.Game.Online.Rooms
|
||||
public class JoinRoomRequest : APIRequest
|
||||
{
|
||||
public readonly Room Room;
|
||||
public readonly string Password;
|
||||
public readonly string? Password;
|
||||
|
||||
public JoinRoomRequest(Room room, string password)
|
||||
public JoinRoomRequest(Room room, string? password)
|
||||
{
|
||||
Room = room;
|
||||
Password = password;
|
||||
|
@ -8,6 +8,7 @@ using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using JetBrains.Annotations;
|
||||
using osu.Framework.Extensions.ObjectExtensions;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osu.Game.Rulesets.Objects;
|
||||
@ -88,7 +89,7 @@ namespace osu.Game.Rulesets.Difficulty
|
||||
).ConfigureAwait(false);
|
||||
|
||||
// ScorePerformanceCache is not used to avoid caching multiple copies of essentially identical perfect performance attributes
|
||||
return difficulty == null ? null : ruleset.CreatePerformanceCalculator()?.Calculate(perfectPlay, difficulty.Value.Attributes);
|
||||
return difficulty == null ? null : ruleset.CreatePerformanceCalculator()?.Calculate(perfectPlay, difficulty.Value.Attributes.AsNonNull());
|
||||
}, cancellationToken);
|
||||
}
|
||||
|
||||
|
@ -9,9 +9,9 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
||||
{
|
||||
public partial class RoomBackgroundScreen : OnlinePlayBackgroundScreen
|
||||
{
|
||||
public readonly Bindable<PlaylistItem> SelectedItem = new Bindable<PlaylistItem>();
|
||||
public readonly Bindable<PlaylistItem?> SelectedItem = new Bindable<PlaylistItem?>();
|
||||
|
||||
public RoomBackgroundScreen(PlaylistItem initialPlaylistItem)
|
||||
public RoomBackgroundScreen(PlaylistItem? initialPlaylistItem)
|
||||
{
|
||||
PlaylistItem = initialPlaylistItem;
|
||||
SelectedItem.BindValueChanged(item => PlaylistItem = item.NewValue);
|
||||
|
Loading…
Reference in New Issue
Block a user