Merge pull request #198 from antham/fix-various-errors

Fix various errors reported by goreportcard
This commit is contained in:
Jesse Duffield
2018-08-22 09:28:19 +10:00
committed by GitHub
3 changed files with 6 additions and 13 deletions
+2 -4
View File
@@ -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")
}