mirror of
https://github.com/restic/restic.git
synced 2025-03-09 00:00:02 +01:00
Merge 74b76ca0df
into de9a040d27
This commit is contained in:
commit
3bd343be95
1 changed files with 7 additions and 5 deletions
12
build.go
12
build.go
|
@ -298,19 +298,21 @@ func (v GoVersion) AtLeast(other GoVersion) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
if v.Major > other.Major {
|
||||
return true
|
||||
}
|
||||
if v.Major < other.Major {
|
||||
return false
|
||||
}
|
||||
|
||||
if v.Minor > other.Minor {
|
||||
return true
|
||||
}
|
||||
if v.Minor < other.Minor {
|
||||
return false
|
||||
}
|
||||
|
||||
if v.Patch < other.Patch {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
return v.Patch >= other.Patch
|
||||
}
|
||||
|
||||
func (v GoVersion) String() string {
|
||||
|
|
Loading…
Add table
Reference in a new issue