Skip to content

Commit 52c1b0b

Browse files
committed
prepareSkips: rename var
1 parent d05464f commit 52c1b0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

revivelib/core.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ func getPackages(includePatterns []string, excludePatterns ArrayFlags) ([][]stri
184184
return packages, nil
185185
}
186186

187-
func prepareSkips(globs, s []string) ([]string, []string, error) {
187+
func prepareSkips(globs, excludes []string) ([]string, []string, error) {
188188
var skips []string
189189
for _, path := range globs {
190190
var basepath string
191191
basepath, _ = doublestar.SplitPattern(path)
192192
fsys := os.DirFS(basepath)
193-
for _, skip := range s {
193+
for _, skip := range excludes {
194194
matches, err := doublestar.Glob(fsys, skip)
195195
if err != nil {
196196
return nil, nil, fmt.Errorf("Skips Error: %v", err)

0 commit comments

Comments
 (0)