all: Use some Go 1.21 features (#9409)

This commit is contained in:
Jakob Borg
2024-02-10 21:02:42 +01:00
committed by GitHub
parent 96c30f8387
commit e1dd36561d
13 changed files with 23 additions and 72 deletions
-7
View File
@@ -43,13 +43,6 @@ func (v Vector) updateWithNow(id ShortID, now uint64) Vector {
})}
}
func max(a, b uint64) uint64 {
if a > b {
return a
}
return b
}
// Merge returns the vector containing the maximum indexes from v and b. If it
// is possible, the vector v is updated and returned. If it is not, a copy
// will be created, updated and returned.