diff --git a/server/neptune/adhoc/adhocexecutionhelpers/adhoc_execution_params.go b/server/neptune/adhoc/adhocexecutionhelpers/adhoc_execution_params.go index 96a56c8e1..2f1aa4d65 100644 --- a/server/neptune/adhoc/adhocexecutionhelpers/adhoc_execution_params.go +++ b/server/neptune/adhoc/adhocexecutionhelpers/adhoc_execution_params.go @@ -37,10 +37,7 @@ func ConstructAdhocExecParamsWithRootCfgBuilderAndRepoRetriever(ctx context.Cont return AdhocTerraformWorkflowExecutionParams{}, errors.Wrap(err, "building root cfgs") } - roots, err := getRootsFromMergedProjectCfgs(rootCfgs) - if err != nil { - return AdhocTerraformWorkflowExecutionParams{}, errors.Wrap(err, "getting roots from merged project cfgs") - } + roots := getRootsFromMergedProjectCfgs(rootCfgs) return AdhocTerraformWorkflowExecutionParams{ Revision: revision, diff --git a/server/neptune/adhoc/adhocexecutionhelpers/root_helpers.go b/server/neptune/adhoc/adhocexecutionhelpers/root_helpers.go index 72ae0e584..aa017ed5b 100644 --- a/server/neptune/adhoc/adhocexecutionhelpers/root_helpers.go +++ b/server/neptune/adhoc/adhocexecutionhelpers/root_helpers.go @@ -8,7 +8,7 @@ import ( "github.com/runatlantis/atlantis/server/neptune/workflows/activities/terraform" ) -func getRootsFromMergedProjectCfgs(rootCfgs []*valid.MergedProjectCfg) ([]terraform.Root, error) { +func getRootsFromMergedProjectCfgs(rootCfgs []*valid.MergedProjectCfg) []terraform.Root { roots := make([]terraform.Root, 0, len(rootCfgs)) for _, rootCfg := range rootCfgs { @@ -16,7 +16,7 @@ func getRootsFromMergedProjectCfgs(rootCfgs []*valid.MergedProjectCfg) ([]terraf terraformRoot := convertToTerraformRoot(root) roots = append(roots, terraformRoot) } - return roots, nil + return roots } func convertMergedProjectCfgToRoot(rootCfg *valid.MergedProjectCfg) workflows.Root {