mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 07:29:00 -08:00
ci(deps): fix gocritic in ".*_test.go$" (#6763)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
"sort"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
@@ -65,7 +64,7 @@ func TestParse(t *testing.T) {
|
||||
|
||||
func sortDeps(deps []ftypes.Dependency) {
|
||||
sort.Slice(deps, func(i, j int) bool {
|
||||
return strings.Compare(deps[i].ID, deps[j].ID) < 0
|
||||
return deps[i].ID < deps[j].ID
|
||||
})
|
||||
|
||||
for i := range deps {
|
||||
|
||||
Reference in New Issue
Block a user