pipeline/service.go
Method Service.execSrvCmd
has 7 return statements (exceeds 4 allowed). Open
Open
func (s *Service) execSrvCmd(cmdStr, path string) (*exec.Cmd, error) {
if cmdStr == "" {
return nil, errors.New("empty string is not a valid command")
}
cmdStr, err := util.TemplateCommits(cmdStr, s.lastCommit, s.currCommit)
Method Service.ShouldBuild
has 7 return statements (exceeds 4 allowed). Open
Open
func (s *Service) ShouldBuild(repo *git.Repository, lastBuildCommit, currBuildCommit *string) (bool, error) {
if s.shouldBuild {
return s.shouldBuild, nil
}
prevTree, err := util.CommitToTree(repo, *lastBuildCommit)