Skip to content

Commit 7c01f1b

Browse files
author
Aaron Schlesinger
committed
fix(storage_creds.go): add missing import and correct build err
1 parent 4a22d7b commit 7c01f1b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/gitreceive/storage_creds.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55
"io/ioutil"
66
"os"
7+
"strings"
78
)
89

910
const (
@@ -36,7 +37,7 @@ func getStorageCreds() (*storageCreds, error) {
3637
if accessKeyErr == nil && accessSecretKeyErr != nil {
3738
return nil, errMissingSecret
3839
}
39-
accessKeyID = strings.TrimSpace(string(accessKeyIDBytes))
40-
accessSecretKey = strings.TrimSpace(string(accessSecretKeyBytes))
40+
accessKeyID := strings.TrimSpace(string(accessKeyIDBytes))
41+
accessSecretKey := strings.TrimSpace(string(accessSecretKeyBytes))
4142
return &storageCreds{key: accessKeyID, secret: accessSecretKey}, nil
4243
}

0 commit comments

Comments
 (0)