We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a22d7b commit 7c01f1bCopy full SHA for 7c01f1b
1 file changed
pkg/gitreceive/storage_creds.go
@@ -4,6 +4,7 @@ import (
4
"fmt"
5
"io/ioutil"
6
"os"
7
+ "strings"
8
)
9
10
const (
@@ -36,7 +37,7 @@ func getStorageCreds() (*storageCreds, error) {
36
37
if accessKeyErr == nil && accessSecretKeyErr != nil {
38
return nil, errMissingSecret
39
}
- accessKeyID = strings.TrimSpace(string(accessKeyIDBytes))
40
- accessSecretKey = strings.TrimSpace(string(accessSecretKeyBytes))
+ accessKeyID := strings.TrimSpace(string(accessKeyIDBytes))
41
+ accessSecretKey := strings.TrimSpace(string(accessSecretKeyBytes))
42
return &storageCreds{key: accessKeyID, secret: accessSecretKey}, nil
43
0 commit comments