mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 08:14:02 +01:00
Remove unnecessary version checking now that multiple versions have been released
This commit is contained in:
parent
a2d8a1065b
commit
fbe8e777a4
@ -99,14 +99,7 @@ func assertValidUpdate(updateInfo shared.UpdateInfo) error {
|
||||
updateInfo.DarwinArm64Url,
|
||||
updateInfo.DarwinArm64UnsignedUrl,
|
||||
updateInfo.DarwinArm64AttestationUrl,
|
||||
}
|
||||
// TODO: Delete this version checking logic once v0.251 has been released
|
||||
pv, err := shared.ParseVersionString(updateInfo.Version)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to parse version string: %w", err)
|
||||
}
|
||||
if pv.GreaterThan(shared.ParsedVersion{MajorVersion: 0, MinorVersion: 246}) {
|
||||
urls = append(urls, fmt.Sprintf("https://github.com/ddworken/hishtory/releases/download/%s/hishtory-release-validation-completed", updateInfo.Version))
|
||||
fmt.Sprintf("https://github.com/ddworken/hishtory/releases/download/%s/hishtory-release-validation-completed", updateInfo.Version),
|
||||
}
|
||||
for _, url := range urls {
|
||||
resp, err := http.Get(url)
|
||||
|
Loading…
Reference in New Issue
Block a user