File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,14 @@ package db
19
19
import (
20
20
"errors"
21
21
"fmt"
22
+ "slices"
22
23
"strings"
23
24
"sync"
24
25
25
26
"github.com/tailscale/setec/acl"
26
27
"github.com/tailscale/setec/audit"
27
28
"github.com/tailscale/setec/types/api"
28
29
"github.com/tink-crypto/tink-go/v2/tink"
29
- "golang.org/x/exp/slices"
30
30
"tailscale.com/util/multierr"
31
31
)
32
32
Original file line number Diff line number Diff line change @@ -10,11 +10,9 @@ import (
10
10
"errors"
11
11
"fmt"
12
12
"io/fs"
13
+ "maps"
13
14
"os"
14
- "sort"
15
-
16
- "golang.org/x/exp/maps"
17
- "golang.org/x/exp/slices"
15
+ "slices"
18
16
19
17
"github.com/tailscale/setec/types/api"
20
18
"github.com/tink-crypto/tink-go/v2/aead"
@@ -266,9 +264,7 @@ func (kv *kv) writeGen() uint64 {
266
264
267
265
// list returns a list of all secret names in kv.
268
266
func (kv * kv ) list () []string {
269
- ret := maps .Keys (kv .secrets )
270
- sort .Strings (ret )
271
- return ret
267
+ return slices .Sorted (maps .Keys (kv .secrets ))
272
268
}
273
269
274
270
// info returns metadata about a secret.
You can’t perform that action at this time.
0 commit comments