mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-23 11:18:28 +00:00
fix golangci ? not too sure what's going on here
This commit is contained in:
1 parent
b4a171b3ea
commit
a2fb925a94
1 file changed
+2
-2
+2
-2
@@ -48,9 +48,9 @@ func NewPublishedStorage(bucket, prefix, credentialsFile, serviceAccountJSON,
|
|||||||
if endpoint != "" {
|
if endpoint != "" {
|
||||||
opts = append(opts, option.WithEndpoint(endpoint), option.WithoutAuthentication())
|
opts = append(opts, option.WithEndpoint(endpoint), option.WithoutAuthentication())
|
||||||
} else if credentialsFile != "" {
|
} else if credentialsFile != "" {
|
||||||
opts = append(opts, option.WithCredentialsFile(credentialsFile))
|
opts = append(opts, option.WithAuthCredentialsFile(option.ServiceAccount, credentialsFile))
|
||||||
} else if serviceAccountJSON != "" {
|
} else if serviceAccountJSON != "" {
|
||||||
opts = append(opts, option.WithCredentialsJSON([]byte(serviceAccountJSON)))
|
opts = append(opts, option.WithAuthCredentialsJSON(option.ServiceAccount, []byte(serviceAccountJSON)))
|
||||||
}
|
}
|
||||||
|
|
||||||
if project != "" {
|
if project != "" {
|
||||||
|
|||||||
Reference in new issue
Block a user