Skip to content

Commit

Permalink
Signed-off-by: tooptoop4 <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
tooptoop4 authored Nov 4, 2024
1 parent a76be55 commit 13b612e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workflow/templateresolution/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/argoproj/argo-workflows/v3/errors"
wfv1 "github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1"
typed "github.com/argoproj/argo-workflows/v3/pkg/client/clientset/versioned/typed/workflow/v1alpha1"
"github.com/argoproj/argo-workflows/v3/workflow/common"
errorsutil "github.com/argoproj/argo-workflows/v3/util/errors"
"github.com/argoproj/argo-workflows/v3/util/retry"
"github.com/argoproj/argo-workflows/v3/workflow/common"
)

// workflowTemplateInterfaceWrapper is an internal struct to wrap clientset.
Expand Down Expand Up @@ -168,7 +168,7 @@ func (ctx *Context) GetTemplate(h wfv1.TemplateReferenceHolder) (*wfv1.Template,
return true, nil
})
if err != nil {
return nil, errors.Errorf(errors.CodeInternal, "failed to get template from reference: %v", err)
return nil, errors.Errorf(errors.CodeInternal, err)

Check failure on line 171 in workflow/templateresolution/context.go

View workflow job for this annotation

GitHub Actions / Windows Unit Tests

cannot use err (variable of type error) as string value in argument to errors.Errorf

Check failure on line 171 in workflow/templateresolution/context.go

View workflow job for this annotation

GitHub Actions / Lint

cannot use err (variable of type error) as string value in argument to errors.Errorf

Check failure on line 171 in workflow/templateresolution/context.go

View workflow job for this annotation

GitHub Actions / Lint

cannot use err (variable of type error) as string value in argument to errors.Errorf

Check failure on line 171 in workflow/templateresolution/context.go

View workflow job for this annotation

GitHub Actions / Lint

cannot use err (variable of type error) as string value in argument to errors.Errorf

Check failure on line 171 in workflow/templateresolution/context.go

View workflow job for this annotation

GitHub Actions / Unit Tests

cannot use err (variable of type error) as string value in argument to errors.Errorf
}
return tmpl, nil
}
Expand All @@ -187,7 +187,7 @@ func (ctx *Context) GetTemplate(h wfv1.TemplateReferenceHolder) (*wfv1.Template,
return true, nil
})
if err != nil {
return nil, errors.Errorf(errors.CodeInternal, "failed to get template by name: %v", err)
return nil, errors.Errorf(errors.CodeInternal, err)

Check failure on line 190 in workflow/templateresolution/context.go

View workflow job for this annotation

GitHub Actions / Windows Unit Tests

cannot use err (variable of type error) as string value in argument to errors.Errorf

Check failure on line 190 in workflow/templateresolution/context.go

View workflow job for this annotation

GitHub Actions / Lint

cannot use err (variable of type error) as string value in argument to errors.Errorf) (typecheck)

Check failure on line 190 in workflow/templateresolution/context.go

View workflow job for this annotation

GitHub Actions / Lint

cannot use err (variable of type error) as string value in argument to errors.Errorf) (typecheck)

Check failure on line 190 in workflow/templateresolution/context.go

View workflow job for this annotation

GitHub Actions / Unit Tests

cannot use err (variable of type error) as string value in argument to errors.Errorf
}
return tmpl, nil
}
Expand Down

0 comments on commit 13b612e

Please sign in to comment.