1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 07:50:02 +08:00

Fix return type to avoid incorrect "on latest version" prompt

This commit is contained in:
Dean Herbert
2025-07-18 15:08:08 +09:00
Unverified
parent 74ae4bcb13
commit a7d52eee83
+5 -2
View File
@@ -101,7 +101,10 @@ namespace osu.Game.Updater
/// <summary>
/// Immediately checks for any available update.
/// </summary>
/// <returns><c>true</c> if any updates are available, <c>false</c> otherwise.</returns>
/// <returns>
/// <c>true</c> if any updates are available, <c>false</c> otherwise.
/// May return true if an error occured (there is potentially an update available).
/// </returns>
public async Task<bool> CheckForUpdateAsync(CancellationToken cancellationToken = default) => await Task.Run(async () =>
{
if (!CanCheckForUpdate)
@@ -120,7 +123,7 @@ namespace osu.Game.Updater
catch (Exception e)
{
Logger.Log($"{nameof(PerformUpdateCheck)} failed ({e.Message})");
return false;
return true;
}
}, cancellationToken).ConfigureAwait(false);