don't return early

pull/430/head
Karolis Rusenas 2019-08-18 23:33:37 +01:00
parent a42b72ae6c
commit 06d275f5ad
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,6 @@ func GetCredentials(image *types.TrackedImage) (creds *types.Credentials) {
"tracked_image": image,
}).Debug("extension.credentialshelper: credentials not found")
}
return &types.Credentials{}
} else {
return creds
}
@ -97,5 +96,5 @@ func GetCredentials(image *types.TrackedImage) (creds *types.Credentials) {
log.WithFields(log.Fields{
"tracked_image": image,
}).Debug("extension.credentialshelper: credentials helper not found")
return creds
return &types.Credentials{}
}

View File

@ -9,6 +9,7 @@ import (
"github.com/keel-hq/keel/approvals"
"github.com/keel-hq/keel/pkg/store/sql"
// "github.com/keel-hq/keel/cache/memory"
"github.com/keel-hq/keel/provider"
"github.com/keel-hq/keel/registry"