deps: update golangci/golangci-lint to v1.62.2 (#3511)

* deps: update golangci/golangci-lint to v1.62.2

* deps: tidy all modules

* chore: align with new golangci-lint rules

golangci-lint added some linters in this version upgrade that require fixes on our side. These are done in this commit.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: edgelessci <edgelessci@users.noreply.github.com>
Co-authored-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2024-12-02 13:24:34 +01:00 committed by GitHub
parent b652baa9c2
commit 53ae065329
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 47 additions and 45 deletions

View file

@ -111,8 +111,8 @@ func (i *List) SortReverse() {
}
// AddVersion adds new to i's list and sorts the element in descending order.
func (i *List) AddVersion(new string) {
i.List = append(i.List, new)
func (i *List) AddVersion(ver string) {
i.List = append(i.List, ver)
i.List = variant.RemoveDuplicate(i.List)
i.SortReverse()