diff options
author | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-21 08:41:31 +0200 |
---|---|---|
committer | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-21 20:54:48 +0200 |
commit | 37681627ab46bc97af6cffcc812dadfe98c0852b (patch) | |
tree | 755358c937261f043cc65fdd68f18c1bd23468c1 /pkg/test | |
parent | 810155ef2f8c1e34c3f67aa95dbde9dcb342bb8a (diff) |
remove useless check
Diffstat (limited to 'pkg/test')
-rw-r--r-- | pkg/test/test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/test/test.go b/pkg/test/test.go index 7bdbd4c10..b5da22903 100644 --- a/pkg/test/test.go +++ b/pkg/test/test.go @@ -18,8 +18,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") } |