empty sha256 tolerance

This commit is contained in:
DismissedLight
2023-12-23 14:35:45 +08:00
parent ccbb7f76d4
commit d8dce5c062

View File

@@ -49,7 +49,7 @@ internal sealed partial class UpdateService : IUpdateService
progress.Report(new(versionInformation.Version.ToString(), 0, 0));
if (versionInformation.Sha256 is not { } sha256)
if (versionInformation.Sha256 is not { Length: > 0 } sha256)
{
return false;
}