Skip to content

Commit f7e00c4

Browse files
author
Aaron Schlesinger
committed
fix(pkg/gitreceive/storage): fix post-merge build failures
1 parent 375951f commit f7e00c4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

pkg/gitreceive/storage/auth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
5454
func CredsOK(fs sys.FS) bool {
55-
cred, err := getAuth(fs)
55+
creds, err := getAuth(fs)
5656
if err != nil {
5757
return false
5858
}

pkg/gitreceive/storage/endpoint.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package storage
22

33
import (
44
"fmt"
5-
"os"
65
"strings"
76

87
"github.com/deis/builder/pkg/sys"

0 commit comments

Comments
 (0)