summaryrefslogtreecommitdiffstats
path: root/pkg/test
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-22 09:28:19 +1000
committerGitHub <noreply@github.com>2018-08-22 09:28:19 +1000
commit584d6b241cc1d4cacb8bda45babbfd148725dee4 (patch)
treed894e8368ebf8f2c15f991182e5bb285f0bb253c /pkg/test
parent4d635cd1cd7ed1a32e516d3d93a0449d3c3a130e (diff)
parent37681627ab46bc97af6cffcc812dadfe98c0852b (diff)
Merge pull request #198 from antham/fix-various-errors
Fix various errors reported by goreportcard
Diffstat (limited to 'pkg/test')
-rw-r--r--pkg/test/test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/test/test.go b/pkg/test/test.go
index ff133a655..6346ac556 100644
--- a/pkg/test/test.go
+++ b/pkg/test/test.go
@@ -26,8 +26,6 @@ func GenerateRepo(filename string) error {
if output, err := exec.Command("bash", filename).CombinedOutput(); err != nil {
return errors.New(string(output))
}
- if err := os.Chdir(testPath + "repo"); err != nil {
- return err
- }
- return nil
+
+ return os.Chdir(testPath + "repo")
}