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

Commit ceb67da

Browse files
authored
Merge pull request #1217 from jmank88/lint
gps: ./hack/lint.bash fixes
2 parents 203c059 + 132b9de commit ceb67da

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

hack/lint.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ set -e
99
PKGS=$(go list ./... | grep -vF /vendor/)
1010
go vet $PKGS
1111
golint $PKGS
12-
megacheck -unused.exported -ignore github.com/golang/dep/internal/test/test.go:U1000 $PKGS
12+
megacheck -unused.exported -ignore "github.com/golang/dep/internal/test/test.go:U1000 github.com/golang/dep/internal/gps/prune.go:U1000" $PKGS

internal/gps/vcs_source.go

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,7 @@ func (s *bzrSource) exportRevisionTo(ctx context.Context, rev Revision, to strin
376376
return err
377377
}
378378

379-
if err := os.RemoveAll(filepath.Join(to, ".bzr")); err != nil {
380-
return err
381-
}
382-
383-
return nil
379+
return os.RemoveAll(filepath.Join(to, ".bzr"))
384380
}
385381

386382
func (s *bzrSource) listVersions(ctx context.Context) ([]PairedVersion, error) {
@@ -457,11 +453,7 @@ func (s *hgSource) exportRevisionTo(ctx context.Context, rev Revision, to string
457453
return err
458454
}
459455

460-
if err := os.RemoveAll(filepath.Join(to, ".hg")); err != nil {
461-
return err
462-
}
463-
464-
return nil
456+
return os.RemoveAll(filepath.Join(to, ".hg"))
465457
}
466458

467459
func (s *hgSource) listVersions(ctx context.Context) ([]PairedVersion, error) {

0 commit comments

Comments
 (0)