Skip to content

Commit

Permalink
fixing reviewdog error
Browse files Browse the repository at this point in the history
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
  • Loading branch information
NoSkillGirl committed Jun 16, 2021
1 parent 3c1cb89 commit e40cd61
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/kyverno/common/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func whenClusterIsTrue(resourceTypes []string, dClient *client.Client, namespace
} else {
fmt.Printf("\n----------------------------------------------------------------------\nresource %s not found in cluster\n----------------------------------------------------------------------\n", resourcePath)
}
return nil, errors.New(fmt.Sprintf("%s not found in cluster", resourcePath))
return nil, fmt.Errorf("%s not found in cluster", resourcePath)
}
}
}
Expand All @@ -108,9 +108,7 @@ func whenClusterIsFalse(resourcePaths []string, policyReport bool) ([]*unstructu
return nil, err
}

for _, resource := range getResources {
resources = append(resources, resource)
}
resources = append(resources, getResources...)
}
return resources, nil
}
Expand Down

0 comments on commit e40cd61

Please sign in to comment.