Commit 15366c00 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

refactor: don't use error as variable name as it collides with package

parent 12e15c38
......@@ -361,10 +361,9 @@ func (wizard *IssueWizard) Validate(conf *Configuration) error {
for _, contents := range allRelevantPaths {
// validate expanded dependency tree if ExpandDependencies flag is set to true; otherwise validate current length
if wizard.ExpandDependencies == nil || *wizard.ExpandDependencies {
result, error := buildDependencyTree(contents, conf, map[CredentialTypeIdentifier]struct{}{})
if error != nil {
return error
result, err := buildDependencyTree(contents, conf, map[CredentialTypeIdentifier]struct{}{})
if err != nil {
return err
}
if len(result) >= maxWizardComplexity {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment