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

Commit

Permalink
Merge pull request #1217 from jmank88/lint
Browse files Browse the repository at this point in the history
gps: ./hack/lint.bash fixes
  • Loading branch information
jmank88 committed Sep 24, 2017
2 parents 203c059 + 132b9de commit ceb67da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion hack/lint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ set -e
PKGS=$(go list ./... | grep -vF /vendor/)
go vet $PKGS
golint $PKGS
megacheck -unused.exported -ignore github.com/golang/dep/internal/test/test.go:U1000 $PKGS
megacheck -unused.exported -ignore "github.com/golang/dep/internal/test/test.go:U1000 github.com/golang/dep/internal/gps/prune.go:U1000" $PKGS
12 changes: 2 additions & 10 deletions internal/gps/vcs_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,7 @@ func (s *bzrSource) exportRevisionTo(ctx context.Context, rev Revision, to strin
return err
}

if err := os.RemoveAll(filepath.Join(to, ".bzr")); err != nil {
return err
}

return nil
return os.RemoveAll(filepath.Join(to, ".bzr"))
}

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

if err := os.RemoveAll(filepath.Join(to, ".hg")); err != nil {
return err
}

return nil
return os.RemoveAll(filepath.Join(to, ".hg"))
}

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

0 comments on commit ceb67da

Please sign in to comment.