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

Commit 9b9f38d

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

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

internal/gps/strip_vendor.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ import (
1212
)
1313

1414
func stripVendor(path string, info os.FileInfo, err error) error {
15-
if err != nil && err != filepath.SkipDir {
16-
return err
17-
}
18-
1915
if info.Name() == "vendor" {
2016
if _, err := os.Lstat(path); err != nil {
2117
return err

internal/gps/strip_vendor_windows.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ import (
1010
)
1111

1212
func stripVendor(path string, info os.FileInfo, err error) error {
13-
if err != nil && err != filepath.SkipDir {
14-
return err
15-
}
16-
1713
if info.Name() == "vendor" {
1814
if _, err := os.Lstat(path); err == nil {
1915
symlink := (info.Mode() & os.ModeSymlink) != 0

0 commit comments

Comments
 (0)