Optimize code and remove Action

This commit is contained in:
2dust
2025-02-06 15:28:51 +08:00
parent ba2a636dd2
commit 67ffa810d3
2 changed files with 7 additions and 7 deletions
@@ -311,11 +311,11 @@ namespace ServiceLib.ViewModels
{
return;
}
await (new UpdateService()).RunAvailabilityCheck(async (bool success, string msg) =>
{
NoticeHandler.Instance.SendMessageEx(msg);
_updateView?.Invoke(EViewAction.DispatcherServerAvailability, msg);
});
var msg = await (new UpdateService()).RunAvailabilityCheck();
NoticeHandler.Instance.SendMessageEx(msg);
_updateView?.Invoke(EViewAction.DispatcherServerAvailability, msg);
}
public void TestServerAvailabilityResult(string msg)