Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit b17e759

Browse files
committed
gps: minute cleanup
1 parent 938ef6c commit b17e759

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

internal/gps/hash.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import (
1111
"sort"
1212
"strconv"
1313
"strings"
14-
15-
"github.com/armon/go-radix"
1614
)
1715

1816
const wcIgnoreSuffix = "*"
@@ -97,10 +95,10 @@ func (s *solver) writeHashingInputs(w io.Writer) {
9795

9896
// Add wildcard ignores to ignore list.
9997
if s.rd.igpfx != nil {
100-
s.rd.igpfx.Walk(radix.WalkFn(func(s string, v interface{}) bool {
98+
s.rd.igpfx.Walk(func(s string, v interface{}) bool {
10199
ig = append(ig, s+"*")
102100
return false
103-
}))
101+
})
104102
}
105103

106104
sort.Strings(ig)

internal/gps/pkgtree/pkgtree.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"strings"
1818
"unicode"
1919

20-
radix "github.com/armon/go-radix"
20+
"github.com/armon/go-radix"
2121
)
2222

2323
// wildcard ignore suffix

0 commit comments

Comments
 (0)