mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:07:29 +08:00
CI fixes
This commit is contained in:
parent
87add0765e
commit
4e742959f2
@ -2,7 +2,6 @@
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Game.Database;
|
||||
using SQLite.Net;
|
||||
@ -82,14 +81,14 @@ namespace osu.Game.Beatmaps
|
||||
/// </summary>
|
||||
/// <param name="beatmapSet">The beatmap to restore.</param>
|
||||
/// <returns>Whether the beatmap's <see cref="BeatmapSetInfo.DeletePending"/> was changed.</returns>
|
||||
public bool Undelete(BeatmapSetInfo set)
|
||||
public bool Undelete(BeatmapSetInfo beatmapSet)
|
||||
{
|
||||
if (!set.DeletePending) return false;
|
||||
if (!beatmapSet.DeletePending) return false;
|
||||
|
||||
set.DeletePending = false;
|
||||
Connection.Update(set);
|
||||
beatmapSet.DeletePending = false;
|
||||
Connection.Update(beatmapSet);
|
||||
|
||||
BeatmapSetAdded?.Invoke(set);
|
||||
BeatmapSetAdded?.Invoke(beatmapSet);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user