File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func (c *creds) isZero() bool {
3232// if a key exists but not a secret, or vice-versa, returns an error.
3333// if both don't exist returns emptyAuth.
3434// otherwise returns a valid auth
35- func getAuth (fs sys.FS ) (* credentials. Credentials , error ) {
35+ func getAuth (fs sys.FS ) (* creds , error ) {
3636 accessKeyIDBytes , accessKeyErr := fs .ReadFile (accessKeyIDFile )
3737 accessSecretKeyBytes , accessSecretKeyErr := fs .ReadFile (accessSecretKeyFile )
3838 if accessKeyErr == os .ErrNotExist && accessSecretKeyErr == os .ErrNotExist {
@@ -52,7 +52,7 @@ func getAuth(fs sys.FS) (*credentials.Credentials, error) {
5252
5353// CredsOK checks if the required credentials to make a request exist
5454func CredsOK (fs sys.FS ) bool {
55- cred , err := getAuth (fs )
55+ creds , err := getAuth (fs )
5656 if err != nil {
5757 return false
5858 }
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package storage
22
33import (
44 "fmt"
5- "os"
65 "strings"
76
87 "github.com/deis/builder/pkg/sys"
You can’t perform that action at this time.
0 commit comments