Fix cluster of silly Go nits.

This commit is contained in:
Jeffrey Regan
2018-07-18 17:27:20 -07:00
parent 5edae84a9e
commit 564b0d6827
29 changed files with 131 additions and 178 deletions

View File

@@ -79,7 +79,7 @@ func createSecretKey(wd string, command string) ([]byte, error) {
// NewResMapFromSecretArgs takes a SecretArgs slice and executes its command in directory p
// then writes the output to a Resource slice and return it.
func NewResMapFromSecretArgs(p string, secretList []types.SecretArgs) (ResMap, error) {
allResources := []*resource.Resource{}
var allResources []*resource.Resource
for _, secret := range secretList {
res, err := newResourceFromSecretGenerator(p, secret)
if err != nil {