Skip to content

Commit dcb6a57

Browse files
authored
dev: use slices package from stdlib (#5011)
1 parent b2d4c31 commit dcb6a57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/golinters/gocritic/gocritic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"path/filepath"
99
"reflect"
1010
"runtime"
11+
"slices"
1112
"sort"
1213
"strings"
1314
"sync"
@@ -16,7 +17,6 @@ import (
1617
gocriticlinter "github.com/go-critic/go-critic/linter"
1718
_ "github.com/quasilyte/go-ruleguard/dsl"
1819
"golang.org/x/exp/maps"
19-
"golang.org/x/exp/slices"
2020
"golang.org/x/tools/go/analysis"
2121

2222
"github.com/golangci/golangci-lint/pkg/config"

pkg/golinters/gocritic/gocritic_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package gocritic
22

33
import (
4+
"slices"
45
"strings"
56
"testing"
67

@@ -9,7 +10,6 @@ import (
910
"github.com/stretchr/testify/assert"
1011
"github.com/stretchr/testify/require"
1112
"golang.org/x/exp/maps"
12-
"golang.org/x/exp/slices"
1313

1414
"github.com/golangci/golangci-lint/pkg/config"
1515
"github.com/golangci/golangci-lint/pkg/logutils"

0 commit comments

Comments
 (0)