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

Commit 8c85179

Browse files
committed
Drop unnecessary err check at start of walker
1 parent 151b3c8 commit 8c85179

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/gps/strip_vendor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
func stripVendor(path string, info os.FileInfo, err error) error {
15-
if err != nil && err != filepath.SkipDir {
15+
if err != nil {
1616
return err
1717
}
1818

internal/gps/strip_vendor_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
func stripVendor(path string, info os.FileInfo, err error) error {
13-
if err != nil && err != filepath.SkipDir {
13+
if err != nil {
1414
return err
1515
}
1616

0 commit comments

Comments
 (0)