1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-22 19:43:21 +08:00

Re-throw OperationCanceledException for consistency?

Mostly to see if it breaks anything.
This commit is contained in:
Dean Herbert 2024-11-14 13:14:35 +09:00
parent 48212dfaeb
commit 2afd357901
No known key found for this signature in database

View File

@ -139,6 +139,7 @@ namespace osu.Game.Database
}
catch (OperationCanceledException)
{
throw;
}
catch (Exception e)
{
@ -531,7 +532,8 @@ namespace osu.Game.Database
/// <param name="model">The new model proposed for import.</param>
/// <param name="realm">The current realm context.</param>
/// <returns>An existing model which matches the criteria to skip importing, else null.</returns>
protected TModel? CheckForExisting(TModel model, Realm realm) => string.IsNullOrEmpty(model.Hash) ? null : realm.All<TModel>().OrderBy(b => b.DeletePending).FirstOrDefault(b => b.Hash == model.Hash);
protected TModel? CheckForExisting(TModel model, Realm realm) =>
string.IsNullOrEmpty(model.Hash) ? null : realm.All<TModel>().OrderBy(b => b.DeletePending).FirstOrDefault(b => b.Hash == model.Hash);
/// <summary>
/// Whether import can be skipped after finding an existing import early in the process.